GboardOnboardingFinishFragment.java
2.89 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
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
*/