ViewExposureManager$d.smali
5.9 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
.class public final Lcom/bytedance/applog/exposure/ViewExposureManager$d;
.super Lkotlin/jvm/internal/Lambda;
.source ""
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/bytedance/applog/exposure/ViewExposureManager;->disposeViewExposure(Landroid/view/View;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/internal/Lambda;",
"Lkotlin/jvm/functions/Function0<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field public final synthetic a:Lcom/bytedance/applog/exposure/ViewExposureManager;
.field public final synthetic b:Landroid/view/View;
# direct methods
.method public constructor <init>(Lcom/bytedance/applog/exposure/ViewExposureManager;Landroid/view/View;)V
.locals 0
iput-object p1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$d;->a:Lcom/bytedance/applog/exposure/ViewExposureManager;
iput-object p2, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$d;->b:Landroid/view/View;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke()Ljava/lang/Object;
.locals 4
.line 1
iget-object v0, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$d;->b:Landroid/view/View;
invoke-static {v0}, Lcom/bytedance/bdtracker/n0;->a(Landroid/view/View;)Landroid/app/Activity;
move-result-object v0
if-eqz v0, :cond_4
const-string v1, "ActivityUtil.findActivit\u2026view) ?: return@runSafely"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$d;->a:Lcom/bytedance/applog/exposure/ViewExposureManager;
invoke-static {v1}, Lcom/bytedance/applog/exposure/ViewExposureManager;->access$getActivitiesMap$p(Lcom/bytedance/applog/exposure/ViewExposureManager;)Ljava/util/WeakHashMap;
move-result-object v1
invoke-virtual {v1, v0}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/WeakHashMap;
if-eqz v0, :cond_4
iget-object v1, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$d;->b:Landroid/view/View;
invoke-virtual {v0, v1}, Ljava/util/WeakHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bytedance/bdtracker/o0;
if-eqz v0, :cond_4
const-string v1, "activitiesMap[activity]?\u2026view) ?: return@runSafely"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/bytedance/bdtracker/o0;->a()Lcom/bytedance/applog/exposure/ViewExposureData;
move-result-object v0
invoke-virtual {v0}, Lcom/bytedance/applog/exposure/ViewExposureData;->getConfig()Lcom/bytedance/applog/exposure/ViewExposureConfig;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/bytedance/applog/exposure/ViewExposureConfig;->getVisualDiagnosis()Ljava/lang/Boolean;
move-result-object v0
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
const/4 v1, 0x1
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4
iget-object v0, p0, Lcom/bytedance/applog/exposure/ViewExposureManager$d;->b:Landroid/view/View;
.line 2
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x10
if-lt v1, v2, :cond_4
instance-of v1, v0, Landroid/widget/ImageView;
const-string v2, "null cannot be cast to non-null type com.bytedance.applog.exposure.DebugDrawable"
if-eqz v1, :cond_2
move-object v1, v0
check-cast v1, Landroid/widget/ImageView;
invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v3
instance-of v3, v3, Lcom/bytedance/bdtracker/l0;
if-eqz v3, :cond_2
invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v3
if-eqz v3, :cond_1
check-cast v3, Lcom/bytedance/bdtracker/l0;
invoke-virtual {v3}, Lcom/bytedance/bdtracker/m0;->a()Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
goto :goto_1
:cond_1
new-instance v0, Lkotlin/TypeCastException;
invoke-direct {v0, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
:goto_1
invoke-virtual {v0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v1
instance-of v1, v1, Lcom/bytedance/bdtracker/l0;
if-eqz v1, :cond_4
invoke-virtual {v0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
move-result-object v1
if-eqz v1, :cond_3
check-cast v1, Lcom/bytedance/bdtracker/l0;
invoke-virtual {v1}, Lcom/bytedance/bdtracker/m0;->a()Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
goto :goto_2
:cond_3
new-instance v0, Lkotlin/TypeCastException;
invoke-direct {v0, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
throw v0
.line 3
:cond_4
:goto_2
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
return-object v0
.end method