ew.java
3.58 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
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.RequiresApi;
import android.view.View;
import android.view.View.OnApplyWindowInsetsListener;
import android.view.ViewGroup.MarginLayoutParams;
import android.view.WindowInsets;
@TargetApi(21)
@RequiresApi(21)
public final class ew
{
private static final int[] a = { 16843828 };
public static int a(Object paramObject)
{
if (paramObject != null) {
return ((WindowInsets)paramObject).getSystemWindowInsetTop();
}
return 0;
}
public static Drawable a(Context paramContext)
{
paramContext = paramContext.obtainStyledAttributes(a);
try
{
Drawable localDrawable = paramContext.getDrawable(0);
return localDrawable;
}
finally
{
paramContext.recycle();
}
}
public static void a(View paramView)
{
if ((paramView instanceof ex))
{
paramView.setOnApplyWindowInsetsListener(new ew.a());
paramView.setSystemUiVisibility(1280);
}
}
public static void a(View paramView, Object paramObject, int paramInt)
{
WindowInsets localWindowInsets = (WindowInsets)paramObject;
if (paramInt == 3) {
paramObject = localWindowInsets.replaceSystemWindowInsets(localWindowInsets.getSystemWindowInsetLeft(), localWindowInsets.getSystemWindowInsetTop(), 0, localWindowInsets.getSystemWindowInsetBottom());
}
for (;;)
{
paramView.dispatchApplyWindowInsets((WindowInsets)paramObject);
return;
paramObject = localWindowInsets;
if (paramInt == 5) {
paramObject = localWindowInsets.replaceSystemWindowInsets(0, localWindowInsets.getSystemWindowInsetTop(), localWindowInsets.getSystemWindowInsetRight(), localWindowInsets.getSystemWindowInsetBottom());
}
}
}
public static void a(ViewGroup.MarginLayoutParams paramMarginLayoutParams, Object paramObject, int paramInt)
{
WindowInsets localWindowInsets = (WindowInsets)paramObject;
if (paramInt == 3) {
paramObject = localWindowInsets.replaceSystemWindowInsets(localWindowInsets.getSystemWindowInsetLeft(), localWindowInsets.getSystemWindowInsetTop(), 0, localWindowInsets.getSystemWindowInsetBottom());
}
for (;;)
{
paramMarginLayoutParams.leftMargin = ((WindowInsets)paramObject).getSystemWindowInsetLeft();
paramMarginLayoutParams.topMargin = ((WindowInsets)paramObject).getSystemWindowInsetTop();
paramMarginLayoutParams.rightMargin = ((WindowInsets)paramObject).getSystemWindowInsetRight();
paramMarginLayoutParams.bottomMargin = ((WindowInsets)paramObject).getSystemWindowInsetBottom();
return;
paramObject = localWindowInsets;
if (paramInt == 5) {
paramObject = localWindowInsets.replaceSystemWindowInsets(0, localWindowInsets.getSystemWindowInsetTop(), localWindowInsets.getSystemWindowInsetRight(), localWindowInsets.getSystemWindowInsetBottom());
}
}
}
static final class a
implements View.OnApplyWindowInsetsListener
{
public final WindowInsets onApplyWindowInsets(View paramView, WindowInsets paramWindowInsets)
{
paramView = (ex)paramView;
if (paramWindowInsets.getSystemWindowInsetTop() > 0) {}
for (boolean bool = true;; bool = false)
{
paramView.setChildInsets(paramWindowInsets, bool);
return paramWindowInsets.consumeSystemWindowInsets();
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/ew.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/