ViewCompatLollipop.java
1.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
package android.support.v4.view;
import android.annotation.TargetApi;
import android.graphics.Rect;
import android.support.annotation.RequiresApi;
import android.view.View;
import android.view.View.OnApplyWindowInsetsListener;
import android.view.WindowInsets;
@TargetApi(21)
@RequiresApi(21)
final class ViewCompatLollipop
{
private static ThreadLocal<Rect> a;
static Rect a()
{
if (a == null) {
a = new ThreadLocal();
}
Rect localRect2 = (Rect)a.get();
Rect localRect1 = localRect2;
if (localRect2 == null)
{
localRect1 = new Rect();
a.set(localRect1);
}
localRect1.setEmpty();
return localRect1;
}
public static void a(View paramView, OnApplyWindowInsetsListenerBridge paramOnApplyWindowInsetsListenerBridge)
{
if (paramOnApplyWindowInsetsListenerBridge == null)
{
paramView.setOnApplyWindowInsetsListener(null);
return;
}
paramView.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener()
{
public final WindowInsets onApplyWindowInsets(View paramAnonymousView, WindowInsets paramAnonymousWindowInsets)
{
return (WindowInsets)this.a.onApplyWindowInsets(paramAnonymousView, paramAnonymousWindowInsets);
}
});
}
public static abstract interface OnApplyWindowInsetsListenerBridge
{
public abstract Object onApplyWindowInsets(View paramView, Object paramObject);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/ViewCompatLollipop.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/