h.java
3.05 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package com.instabug.library;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.instabug.library.util.InstabugSDKLogger;
public abstract class h
extends Fragment
{
private View a;
private Activity b;
private boolean c;
public abstract void a();
public abstract void a(Bundle paramBundle);
public void a(String paramString)
{
if (this.a == null)
{
InstabugSDKLogger.v(this, "Calling setTitle before inflating the view! Ignoring call");
return;
}
TextView localTextView = (TextView)this.a.findViewById(R.id.instabug_fragment_title);
if (localTextView != null)
{
InstabugSDKLogger.v(this, "Setting fragment title to \"" + paramString + "\"");
localTextView.setText(paramString);
return;
}
InstabugSDKLogger.v(this, "instabug_fragment_title wasn't found, make sure your layout.xml contains it");
}
@LayoutRes
public abstract int b();
public abstract void b(Bundle paramBundle);
public abstract String c();
public boolean d()
{
return this.c;
}
public Activity e()
{
InstabugSDKLogger.v(this, "Returning preserved activity " + this.b);
return this.b;
}
public void onAttach(Activity paramActivity)
{
super.onAttach(paramActivity);
this.b = paramActivity;
}
public void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
InstabugSDKLogger.v(this, "onCreateView called");
if (getArguments() != null)
{
InstabugSDKLogger.v(this, "Arguments found, calling consumeNewInstanceSavedArguments with " + getArguments());
a();
}
this.c = false;
}
public View onCreateView(LayoutInflater paramLayoutInflater, ViewGroup paramViewGroup, Bundle paramBundle)
{
InstabugSDKLogger.v(this, "onCreateView called");
this.a = paramLayoutInflater.inflate(b(), paramViewGroup, false);
a(c());
return this.a;
}
public void onPause()
{
super.onPause();
InstabugSDKLogger.v(this, "onPause called, calling saveState");
}
public void onResume()
{
super.onResume();
InstabugSDKLogger.v(this, "onResume called, calling saveState");
}
public void onSaveInstanceState(Bundle paramBundle)
{
super.onSaveInstanceState(paramBundle);
InstabugSDKLogger.v(this, "onSaveInstanceState called, calling saveState");
a(paramBundle);
}
public void onViewCreated(View paramView, Bundle paramBundle)
{
InstabugSDKLogger.v(this, "onViewCreated called");
super.onViewCreated(paramView, paramBundle);
if (paramBundle != null)
{
InstabugSDKLogger.v(this, "savedInstanceState found, calling restoreState");
b(paramBundle);
this.c = true;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/instabug/library/h.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/