p.java
2.33 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
89
90
91
92
93
package com.instabug.library;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.instabug.library.util.InstabugSDKLogger;
import com.instabug.library.util.c;
import com.instabug.library.util.f;
import com.instabug.library.util.l;
public class p
extends h
{
private a a;
protected void a() {}
protected void a(Bundle paramBundle) {}
protected int b()
{
return R.layout.instabug_lyt_success;
}
protected void b(Bundle paramBundle) {}
protected String c()
{
return getString(R.string.instabug_str_empty);
}
public void onAttach(Activity paramActivity)
{
super.onAttach(paramActivity);
try
{
this.a = ((a)paramActivity);
return;
}
catch (ClassCastException localClassCastException)
{
throw new ClassCastException(paramActivity.toString() + " must implement InstabugSuccessFragment.Callbacks");
}
}
public void onDetach()
{
super.onDetach();
this.a = null;
}
public void onViewCreated(View paramView, Bundle paramBundle)
{
super.onViewCreated(paramView, paramBundle);
IBGCustomTextPlaceHolder.Key localKey = IBGCustomTextPlaceHolder.Key.REPORT_SUCCESSFULLY_SENT;
String str = new f(getActivity().getApplicationContext()).a();
if (str == null) {
InstabugSDKLogger.w(this, "It seems app:name isn't defined in your manifest. Using a generic name instead");
}
int i = R.string.instabug_str_thank_you;
paramBundle = str;
if (str == null) {
paramBundle = "App";
}
paramBundle = l.a(localKey, getString(i, new Object[] { paramBundle }));
((TextView)paramView.findViewById(R.id.instabug_txt_success_note)).setText(paramBundle);
c.a((ImageView)paramView.findViewById(R.id.instabug_img_success));
new Handler().postDelayed(new Runnable()
{
public final void run()
{
if (p.a(p.this) != null) {
p.a(p.this).e();
}
}
}, 3000L);
}
public static abstract interface a
{
public abstract void e();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/p.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/