AvatarUpgradeFragment.java 3.07 KB
package com.bitstrips.imoji.abv3.upgrade;

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.view.animation.AnimationUtils;
import android.widget.ImageView;
import com.bitstrips.imoji.abv3.AvatarBuilderGender;

public class AvatarUpgradeFragment
  extends Fragment
{
  private View a;
  private View b;
  private ImageView c;
  private View d;
  private View e;
  private AvatarBuilderGender f;
  
  public static AvatarUpgradeFragment createFragment(AvatarBuilderGender paramAvatarBuilderGender)
  {
    AvatarUpgradeFragment localAvatarUpgradeFragment = new AvatarUpgradeFragment();
    Bundle localBundle = new Bundle();
    localBundle.putSerializable("EXTRA_GENDER", paramAvatarBuilderGender);
    localAvatarUpgradeFragment.setArguments(localBundle);
    return localAvatarUpgradeFragment;
  }
  
  public AvatarUpgradeFragmentListener getListener()
  {
    return (AvatarUpgradeFragmentListener)getActivity();
  }
  
  public void onActivityCreated(@Nullable Bundle paramBundle)
  {
    super.onActivityCreated(paramBundle);
    this.a.startAnimation(AnimationUtils.loadAnimation(getActivity(), 2130968596));
    this.b.startAnimation(AnimationUtils.loadAnimation(getActivity(), 2130968595));
  }
  
  @Nullable
  public View onCreateView(LayoutInflater paramLayoutInflater, @Nullable ViewGroup paramViewGroup, @Nullable Bundle paramBundle)
  {
    paramLayoutInflater = paramLayoutInflater.inflate(2130903108, paramViewGroup, false);
    this.f = ((AvatarBuilderGender)getArguments().getSerializable("EXTRA_GENDER"));
    this.a = paramLayoutInflater.findViewById(2131689715);
    this.b = paramLayoutInflater.findViewById(2131689716);
    this.c = ((ImageView)paramLayoutInflater.findViewById(2131689706));
    this.d = paramLayoutInflater.findViewById(2131689707);
    this.e = paramLayoutInflater.findViewById(2131689717);
    if (this.f == AvatarBuilderGender.GENDER_MALE) {
      this.c.setImageResource(2130837718);
    }
    for (;;)
    {
      this.a.setOnClickListener(new View.OnClickListener()
      {
        public final void onClick(View paramAnonymousView)
        {
          AvatarUpgradeFragment.this.getListener().onUpgradeDismiss();
        }
      });
      this.e.setOnClickListener(new View.OnClickListener()
      {
        public final void onClick(View paramAnonymousView)
        {
          AvatarUpgradeFragment.this.getListener().onUpgradeDismiss();
        }
      });
      this.d.setOnClickListener(new View.OnClickListener()
      {
        public final void onClick(View paramAnonymousView)
        {
          AvatarUpgradeFragment.this.getListener().onUpgradeAvatarSelected();
        }
      });
      return paramLayoutInflater;
      this.c.setImageResource(2130837717);
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/abv3/upgrade/AvatarUpgradeFragment.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */