GboardOnboardingFinishFragment.java 2.89 KB
package com.bitstrips.imoji.onboarding.gboard;

import android.animation.Animator;
import android.content.Context;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import com.bitstrips.imoji.behaviour.BehaviourHelper;
import com.bitstrips.imoji.identity.AvatarManager;
import com.bitstrips.imoji.persistence.MediaCache;
import com.squareup.picasso.Callback;
import com.squareup.picasso.RequestCreator;
import javax.inject.Inject;

public class GboardOnboardingFinishFragment
  extends BaseOnboardingFragment
{
  @Inject
  AvatarManager c;
  @Inject
  BehaviourHelper d;
  @Inject
  MediaCache e;
  
  public static String getImageUrl(Context paramContext, String paramString1, String paramString2)
  {
    return paramContext.getString(2131231238, new Object[] { paramString1, paramString2 });
  }
  
  public static GboardOnboardingFinishFragment newInstance(GboardOnboardingSource paramGboardOnboardingSource)
  {
    GboardOnboardingFinishFragment localGboardOnboardingFinishFragment = new GboardOnboardingFinishFragment();
    localGboardOnboardingFinishFragment.setArguments(BaseOnboardingFragment.createArguments(paramGboardOnboardingSource));
    return localGboardOnboardingFinishFragment;
  }
  
  @Nullable
  public View onCreateView(LayoutInflater paramLayoutInflater, @Nullable ViewGroup paramViewGroup, @Nullable final Bundle paramBundle)
  {
    paramLayoutInflater = paramLayoutInflater.inflate(2130903116, paramViewGroup, false);
    paramViewGroup = (Button)paramLayoutInflater.findViewById(2131689744);
    paramBundle = paramLayoutInflater.findViewById(2131689742);
    final ImageView localImageView = (ImageView)paramLayoutInflater.findViewById(2131689743);
    localImageView.postDelayed(new Runnable()
    {
      public final void run()
      {
        GboardOnboardingFinishFragment.this.e.load(this.a).fit().noFade().into(localImageView, new Callback()
        {
          public final void onError() {}
          
          public final void onSuccess()
          {
            GboardOnboardingUtils.springInAnimator(GboardOnboardingFinishFragment.1.this.c).start();
          }
        });
      }
    }, getResources().getInteger(2131558419));
    paramViewGroup.setOnClickListener(new View.OnClickListener()
    {
      public final void onClick(View paramAnonymousView)
      {
        GboardOnboardingFinishFragment.this.dismiss();
      }
    });
    GboardOnboardingUtils.pulseAnimator(paramViewGroup).start();
    return paramLayoutInflater;
  }
}


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