FullAvatarUpgradeFragment.java
3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.bitstrips.imoji.onboarding.upgrade;
import android.content.Context;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bitstrips.imoji.abv3.AvatarBuilderGender;
import com.bitstrips.imoji.ui.BmTypefaceLoader;
import com.bitstrips.imoji.ui.BmTypefaceLoader.OnTypefaceLoadedCallback;
public class FullAvatarUpgradeFragment
extends Fragment
{
private ImageView a;
private View b;
private View c;
private AvatarBuilderGender d;
private TextView e;
private FullAvatarUpgradeFragmentListener f;
public static FullAvatarUpgradeFragment createFragment(AvatarBuilderGender paramAvatarBuilderGender)
{
FullAvatarUpgradeFragment localFullAvatarUpgradeFragment = new FullAvatarUpgradeFragment();
Bundle localBundle = new Bundle();
localBundle.putSerializable("EXTRA_GENDER", paramAvatarBuilderGender);
localFullAvatarUpgradeFragment.setArguments(localBundle);
return localFullAvatarUpgradeFragment;
}
public void onAttach(Context paramContext)
{
super.onAttach(paramContext);
this.f = ((FullAvatarUpgradeFragmentListener)getActivity());
}
@Nullable
public View onCreateView(LayoutInflater paramLayoutInflater, @Nullable ViewGroup paramViewGroup, @Nullable Bundle paramBundle)
{
paramLayoutInflater = paramLayoutInflater.inflate(2130903106, paramViewGroup, false);
this.e = ((TextView)paramLayoutInflater.findViewById(2131689705));
BmTypefaceLoader.getInstance().loadTypefaceStyle(getContext(), 1, new BmTypefaceLoader.OnTypefaceLoadedCallback()
{
public final void onTypefaceLoaded(Typeface paramAnonymousTypeface)
{
FullAvatarUpgradeFragment.a(FullAvatarUpgradeFragment.this).setTypeface(paramAnonymousTypeface);
}
});
this.d = ((AvatarBuilderGender)getArguments().getSerializable("EXTRA_GENDER"));
this.a = ((ImageView)paramLayoutInflater.findViewById(2131689706));
this.b = paramLayoutInflater.findViewById(2131689707);
this.c = paramLayoutInflater.findViewById(2131689704);
if (this.d == AvatarBuilderGender.GENDER_MALE) {
this.a.setImageResource(2130837703);
}
for (;;)
{
this.c.setOnClickListener(new View.OnClickListener()
{
public final void onClick(View paramAnonymousView)
{
FullAvatarUpgradeFragment.b(FullAvatarUpgradeFragment.this).onUpgradeDismiss();
}
});
this.b.setOnClickListener(new View.OnClickListener()
{
public final void onClick(View paramAnonymousView)
{
FullAvatarUpgradeFragment.b(FullAvatarUpgradeFragment.this).onUpgradeAvatarSelected();
}
});
return paramLayoutInflater;
this.a.setImageResource(2130837702);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/onboarding/upgrade/FullAvatarUpgradeFragment.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/