FullAvatarUpgradeFragment.java 3.16 KB
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
 */