AppCompatDelegate.java
5.08 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
156
157
158
159
160
161
162
163
164
165
package android.support.v7.app;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.support.annotation.IdRes;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.support.v4.os.BuildCompat;
import android.support.v7.view.ActionMode;
import android.support.v7.view.ActionMode.Callback;
import android.support.v7.widget.Toolbar;
import android.util.AttributeSet;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.view.Window;
import fe;
import ff;
import fg;
import fh;
import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public abstract class AppCompatDelegate
{
public static final int FEATURE_ACTION_MODE_OVERLAY = 10;
public static final int FEATURE_SUPPORT_ACTION_BAR = 108;
public static final int FEATURE_SUPPORT_ACTION_BAR_OVERLAY = 109;
public static final int MODE_NIGHT_AUTO = 0;
public static final int MODE_NIGHT_FOLLOW_SYSTEM = -1;
public static final int MODE_NIGHT_NO = 1;
public static final int MODE_NIGHT_YES = 2;
private static int a = -1;
private static boolean b = false;
private static AppCompatDelegate a(Context paramContext, Window paramWindow, AppCompatCallback paramAppCompatCallback)
{
int i = Build.VERSION.SDK_INT;
if (BuildCompat.isAtLeastN()) {
return new fe(paramContext, paramWindow, paramAppCompatCallback);
}
if (i >= 23) {
return new fh(paramContext, paramWindow, paramAppCompatCallback);
}
if (i >= 14) {
return new fg(paramContext, paramWindow, paramAppCompatCallback);
}
if (i >= 11) {
return new ff(paramContext, paramWindow, paramAppCompatCallback);
}
return new AppCompatDelegateImplV9(paramContext, paramWindow, paramAppCompatCallback);
}
public static AppCompatDelegate create(Activity paramActivity, AppCompatCallback paramAppCompatCallback)
{
return a(paramActivity, paramActivity.getWindow(), paramAppCompatCallback);
}
public static AppCompatDelegate create(Dialog paramDialog, AppCompatCallback paramAppCompatCallback)
{
return a(paramDialog.getContext(), paramDialog.getWindow(), paramAppCompatCallback);
}
public static int getDefaultNightMode()
{
return a;
}
public static boolean isCompatVectorFromResourcesEnabled()
{
return b;
}
public static void setCompatVectorFromResourcesEnabled(boolean paramBoolean)
{
b = paramBoolean;
}
public static void setDefaultNightMode(int paramInt)
{
switch (paramInt)
{
default:
return;
}
a = paramInt;
}
public abstract void addContentView(View paramView, ViewGroup.LayoutParams paramLayoutParams);
public abstract boolean applyDayNight();
public abstract View createView(@Nullable View paramView, String paramString, @NonNull Context paramContext, @NonNull AttributeSet paramAttributeSet);
@Nullable
public abstract View findViewById(@IdRes int paramInt);
@Nullable
public abstract ActionBarDrawerToggle.Delegate getDrawerToggleDelegate();
public abstract MenuInflater getMenuInflater();
@Nullable
public abstract ActionBar getSupportActionBar();
public abstract boolean hasWindowFeature(int paramInt);
public abstract void installViewFactory();
public abstract void invalidateOptionsMenu();
public abstract boolean isHandleNativeActionModesEnabled();
public abstract void onConfigurationChanged(Configuration paramConfiguration);
public abstract void onCreate(Bundle paramBundle);
public abstract void onDestroy();
public abstract void onPostCreate(Bundle paramBundle);
public abstract void onPostResume();
public abstract void onSaveInstanceState(Bundle paramBundle);
public abstract void onStart();
public abstract void onStop();
public abstract boolean requestWindowFeature(int paramInt);
public abstract void setContentView(@LayoutRes int paramInt);
public abstract void setContentView(View paramView);
public abstract void setContentView(View paramView, ViewGroup.LayoutParams paramLayoutParams);
public abstract void setHandleNativeActionModesEnabled(boolean paramBoolean);
public abstract void setLocalNightMode(int paramInt);
public abstract void setSupportActionBar(@Nullable Toolbar paramToolbar);
public abstract void setTitle(@Nullable CharSequence paramCharSequence);
@Nullable
public abstract ActionMode startSupportActionMode(@NonNull ActionMode.Callback paramCallback);
@Retention(RetentionPolicy.SOURCE)
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public static @interface NightMode {}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/app/AppCompatDelegate.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/