FragmentHostCallback.java
4.23 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
package android.support.v4.app;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.IntentSender.SendIntentException;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.util.SimpleArrayMap;
import android.view.LayoutInflater;
import android.view.View;
import cn;
import cq;
import java.io.FileDescriptor;
import java.io.PrintWriter;
public abstract class FragmentHostCallback<E>
extends FragmentContainer
{
final Activity b;
public final Context c;
public final Handler d;
final int e;
public final cn f = new cn();
SimpleArrayMap<String, LoaderManager> g;
boolean h;
cq i;
boolean j;
boolean k;
private FragmentHostCallback(Activity paramActivity, Context paramContext, Handler paramHandler, int paramInt)
{
this.b = paramActivity;
this.c = paramContext;
this.d = paramHandler;
this.e = paramInt;
}
public FragmentHostCallback(Context paramContext, Handler paramHandler, int paramInt) {}
FragmentHostCallback(FragmentActivity paramFragmentActivity)
{
this(paramFragmentActivity, paramFragmentActivity, paramFragmentActivity.c, 0);
}
final cq a(String paramString, boolean paramBoolean1, boolean paramBoolean2)
{
if (this.g == null) {
this.g = new SimpleArrayMap();
}
cq localcq = (cq)this.g.get(paramString);
if (localcq == null)
{
if (paramBoolean2)
{
localcq = new cq(paramString, this, paramBoolean1);
this.g.put(paramString, localcq);
}
return localcq;
}
localcq.h = this;
return localcq;
}
public void a(Fragment paramFragment) {}
public final void a(String paramString)
{
if (this.g != null)
{
cq localcq = (cq)this.g.get(paramString);
if ((localcq != null) && (!localcq.f))
{
localcq.f();
this.g.remove(paramString);
}
}
}
public void onDump(String paramString, FileDescriptor paramFileDescriptor, PrintWriter paramPrintWriter, String[] paramArrayOfString) {}
@Nullable
public View onFindViewById(int paramInt)
{
return null;
}
@Nullable
public abstract E onGetHost();
public LayoutInflater onGetLayoutInflater()
{
return (LayoutInflater)this.c.getSystemService("layout_inflater");
}
public int onGetWindowAnimations()
{
return this.e;
}
public boolean onHasView()
{
return true;
}
public boolean onHasWindowAnimations()
{
return true;
}
public void onRequestPermissionsFromFragment(@NonNull Fragment paramFragment, @NonNull String[] paramArrayOfString, int paramInt) {}
public boolean onShouldSaveFragmentState(Fragment paramFragment)
{
return true;
}
public boolean onShouldShowRequestPermissionRationale(@NonNull String paramString)
{
return false;
}
public void onStartActivityFromFragment(Fragment paramFragment, Intent paramIntent, int paramInt)
{
onStartActivityFromFragment(paramFragment, paramIntent, paramInt, null);
}
public void onStartActivityFromFragment(Fragment paramFragment, Intent paramIntent, int paramInt, @Nullable Bundle paramBundle)
{
if (paramInt != -1) {
throw new IllegalStateException("Starting activity with a requestCode requires a FragmentActivity host");
}
this.c.startActivity(paramIntent);
}
public void onStartIntentSenderFromFragment(Fragment paramFragment, IntentSender paramIntentSender, int paramInt1, @Nullable Intent paramIntent, int paramInt2, int paramInt3, int paramInt4, Bundle paramBundle)
throws IntentSender.SendIntentException
{
if (paramInt1 != -1) {
throw new IllegalStateException("Starting intent sender with a requestCode requires a FragmentActivity host");
}
ActivityCompat.startIntentSenderForResult(this.b, paramIntentSender, paramInt1, paramIntent, paramInt2, paramInt3, paramInt4, paramBundle);
}
public void onSupportInvalidateOptionsMenu() {}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/app/FragmentHostCallback.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/