| | | |
Offset 3, 43 lines modified | Offset 3, 290 lines modified |
3 | .source·"ResourcesCompat.java" | 3 | .source·"ResourcesCompat.java" |
| |
| |
4 | #·annotations | 4 | #·annotations |
5 | .annotation·system·Ldalvik/annotation/MemberClasses; | 5 | .annotation·system·Ldalvik/annotation/MemberClasses; |
6 | ····value·=·{ | 6 | ····value·=·{ |
7 | ········Landroidx/core/content/res/ResourcesCompat$ThemeCompat;, | 7 | ········Landroidx/core/content/res/ResourcesCompat$ThemeCompat;, |
8 | ········Landroidx/core/content/res/ResourcesCompat$FontCallback; | 8 | ········Landroidx/core/content/res/ResourcesCompat$FontCallback;, |
| 9 | ········Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry; |
9 | ····} | 10 | ····} |
10 | .end·annotation | 11 | .end·annotation |
| |
| |
| 12 | #·static·fields |
| 13 | .field·private·static·final·sColorStateCacheLock:Ljava/lang/Object; |
| |
| 14 | .field·private·static·final·sColorStateCaches:Ljava/util/WeakHashMap; |
| 15 | ····.annotation·system·Ldalvik/annotation/Signature; |
| 16 | ········value·=·{ |
| 17 | ············"Ljava/util/WeakHashMap<", |
| 18 | ············"Landroid/content/res/Resources;", |
| 19 | ············"Landroid/util/SparseArray<", |
| 20 | ············"Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry;", |
| 21 | ············">;>;" |
| 22 | ········} |
| 23 | ····.end·annotation |
| 24 | .end·field |
| |
| 25 | .field·private·static·final·sTempTypedValue:Ljava/lang/ThreadLocal; |
| 26 | ····.annotation·system·Ldalvik/annotation/Signature; |
| 27 | ········value·=·{ |
| 28 | ············"Ljava/lang/ThreadLocal<", |
| 29 | ············"Landroid/util/TypedValue;", |
| 30 | ············">;" |
| 31 | ········} |
| 32 | ····.end·annotation |
| 33 | .end·field |
| |
| |
11 | #·direct·methods | 34 | #·direct·methods |
| 35 | .method·static·constructor·<clinit>()V |
| 36 | ····.locals·2 |
| |
| 37 | ····.line·68 |
| 38 | ····new-instance·v0,·Ljava/lang/ThreadLocal; |
| |
| 39 | ····invoke-direct·{v0},·Ljava/lang/ThreadLocal;-><init>()V |
| |
| 40 | ····sput-object·v0,·Landroidx/core/content/res/ResourcesCompat;->sTempTypedValue:Ljava/lang/ThreadLocal; |
| |
| 41 | ····.line·71 |
| 42 | ····new-instance·v0,·Ljava/util/WeakHashMap; |
| |
| 43 | ····const/4·v1,·0x0 |
| |
| 44 | ····invoke-direct·{v0,·v1},·Ljava/util/WeakHashMap;-><init>(I)V |
| |
| 45 | ····sput-object·v0,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCaches:Ljava/util/WeakHashMap; |
| |
| 46 | ····.line·73 |
| 47 | ····new-instance·v0,·Ljava/lang/Object; |
| |
| 48 | ····invoke-direct·{v0},·Ljava/lang/Object;-><init>()V |
| |
| 49 | ····sput-object·v0,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCacheLock:Ljava/lang/Object; |
| |
| 50 | ····return-void |
| 51 | .end·method |
| |
| 52 | .method·private·static·addColorStateListToCache(Landroid/content/res/Resources;ILandroid/content/res/ColorStateList;)V |
| 53 | ····.locals·3 |
| |
| 54 | ····.line·262 |
| 55 | ····sget-object·v0,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCacheLock:Ljava/lang/Object; |
| |
| 56 | ····monitor-enter·v0 |
| |
| 57 | ····.line·263 |
| 58 | ····:try_start_0 |
| 59 | ····sget-object·v1,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCaches:Ljava/util/WeakHashMap; |
| |
| 60 | ····invoke-virtual·{v1,·p0},·Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; |
| |
| 61 | ····move-result-object·v1 |
| |
| 62 | ····check-cast·v1,·Landroid/util/SparseArray; |
| |
| 63 | ····if-nez·v1,·:cond_0 |
| |
| 64 | ····.line·265 |
| 65 | ····new-instance·v1,·Landroid/util/SparseArray; |
| |
| 66 | ····invoke-direct·{v1},·Landroid/util/SparseArray;-><init>()V |
| |
| 67 | ····.line·266 |
| 68 | ····sget-object·v2,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCaches:Ljava/util/WeakHashMap; |
| |
| 69 | ····invoke-virtual·{v2,·p0,·v1},·Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
| |
| 70 | ····.line·268 |
| 71 | ····:cond_0 |
| 72 | ····new-instance·v2,·Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry; |
| |
| 73 | ····.line·269 |
| 74 | ····invoke-virtual·{p0},·Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration; |
| |
| 75 | ····move-result-object·p0 |
| |
| 76 | ····invoke-direct·{v2,·p2,·p0},·Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry;-><init>(Landroid/content/res/ColorStateList;Landroid/content/res/Configuration;)V |
| |
| 77 | ····.line·268 |
| 78 | ····invoke-virtual·{v1,·p1,·v2},·Landroid/util/SparseArray;->append(ILjava/lang/Object;)V |
| |
| 79 | ····.line·270 |
| 80 | ····monitor-exit·v0 |
| |
| 81 | ····return-void |
| |
| 82 | ····:catchall_0 |
| 83 | ····move-exception·p0 |
| |
| 84 | ····monitor-exit·v0 |
| 85 | ····:try_end_0 |
| 86 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
| 87 | ····throw·p0 |
| 88 | .end·method |
| |
| 89 | .method·private·static·getCachedColorStateList(Landroid/content/res/Resources;I)Landroid/content/res/ColorStateList; |
| 90 | ····.locals·4 |
| |
| 91 | ····.line·242 |
| 92 | ····sget-object·v0,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCacheLock:Ljava/lang/Object; |
| |
| 93 | ····monitor-enter·v0 |
| |
| 94 | ····.line·243 |
| 95 | ····:try_start_0 |
| 96 | ····sget-object·v1,·Landroidx/core/content/res/ResourcesCompat;->sColorStateCaches:Ljava/util/WeakHashMap; |
| |
| 97 | ····invoke-virtual·{v1,·p0},·Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; |
| |
| 98 | ····move-result-object·v1 |
| |
| 99 | ····check-cast·v1,·Landroid/util/SparseArray; |
| |
| 100 | ····if-eqz·v1,·:cond_1 |
| |
| 101 | ····.line·244 |
| 102 | ····invoke-virtual·{v1},·Landroid/util/SparseArray;->size()I |
| |
| 103 | ····move-result·v2 |
| |
| 104 | ····if-lez·v2,·:cond_1 |
| |
| 105 | ····.line·245 |
| 106 | ····invoke-virtual·{v1,·p1},·Landroid/util/SparseArray;->get(I)Ljava/lang/Object; |
| |
| 107 | ····move-result-object·v2 |
| |
| 108 | ····check-cast·v2,·Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry; |
| |
| 109 | ····if-eqz·v2,·:cond_1 |
| |
| 110 | ····.line·247 |
| 111 | ····iget-object·v3,·v2,·Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry;->mConfiguration:Landroid/content/res/Configuration; |
| |
| 112 | ····invoke-virtual·{p0},·Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration; |
| |
| 113 | ····move-result-object·p0 |
| |
| 114 | ····invoke-virtual·{v3,·p0},·Landroid/content/res/Configuration;->equals(Landroid/content/res/Configuration;)Z |
| |
| 115 | ····move-result·p0 |
| |
| 116 | ····if-eqz·p0,·:cond_0 |
| |
| 117 | ····.line·249 |
| 118 | ····iget-object·p0,·v2,·Landroidx/core/content/res/ResourcesCompat$ColorStateListCacheEntry;->mValue:Landroid/content/res/ColorStateList; |
| |
| 119 | ····monitor-exit·v0 |
| |
| 120 | ····return-object·p0 |
| |
| 121 | ····.line·252 |
| 122 | ····:cond_0 |
| 123 | ····invoke-virtual·{v1,·p1},·Landroid/util/SparseArray;->remove(I)V |
| |
| 124 | ····.line·256 |
| 125 | ····:cond_1 |
| 126 | ····monitor-exit·v0 |
| |
| 127 | ····const/4·p0,·0x0 |
| |
| 128 | ····return-object·p0 |
| |
| 129 | ····:catchall_0 |
| 130 | ····move-exception·p0 |
| |
| 131 | ····monitor-exit·v0 |
| 132 | ····:try_end_0 |
| 133 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_0 |
| |
| 134 | ····throw·p0 |
| 135 | .end·method |
| |
| 136 | .method·public·static·getColorStateList(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList; |
| 137 | ····.locals·2 |
| 138 | ····.annotation·system·Ldalvik/annotation/Throws; |
| 139 | ········value·=·{ |
| 140 | ············Landroid/content/res/Resources$NotFoundException; |
| 141 | ········} |
| 142 | ····.end·annotation |
| |
| 143 | ····.line·197 |
| 144 | ····sget·v0,·Landroid/os/Build$VERSION;->SDK_INT:I |
| |
| 145 | ····const/16·v1,·0x17 |
| |
| 146 | ····if-lt·v0,·v1,·:cond_0 |
| |
| 147 | ····.line·199 |
| 148 | ····invoke-virtual·{p0,·p1,·p2},·Landroid/content/res/Resources;->getColorStateList(ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList; |
| |
| 149 | ····move-result-object·p0 |
| |
| 150 | ····return-object·p0 |
| |
| 151 | ····.line·203 |
| 152 | ····:cond_0 |
| 153 | ····invoke-static·{p0,·p1},·Landroidx/core/content/res/ResourcesCompat;->getCachedColorStateList(Landroid/content/res/Resources;I)Landroid/content/res/ColorStateList; |
| |
| 154 | ····move-result-object·v0 |
| |
| 155 | ····if-eqz·v0,·:cond_1 |
| |
| 156 | ····return-object·v0 |
| |
| 157 | ····.line·208 |
| 158 | ····:cond_1 |
| 159 | ····invoke-static·{p0,·p1,·p2},·Landroidx/core/content/res/ResourcesCompat;->inflateColorStateList(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList; |
| |
| 160 | ····move-result-object·p2 |
| |
| 161 | ····if-eqz·p2,·:cond_2 |
| |
| 162 | ····.line·211 |
| 163 | ····invoke-static·{p0,·p1,·p2},·Landroidx/core/content/res/ResourcesCompat;->addColorStateListToCache(Landroid/content/res/Resources;ILandroid/content/res/ColorStateList;)V |
| |
| 164 | ····return-object·p2 |
| |
| 165 | ····.line·216 |
| 166 | ····:cond_2 |
| 167 | ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList; |
| |
| 168 | ····move-result-object·p0 |
| |
| 169 | ····return-object·p0 |
| 170 | .end·method |
| |
12 | .method·public·static·getDrawable(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; | 171 | .method·public·static·getDrawable(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; |
13 | ····.locals·2 | 172 | ····.locals·2 |
14 | ····.annotation·system·Ldalvik/annotation/Throws; | 173 | ····.annotation·system·Ldalvik/annotation/Throws; |
15 | ········value·=·{ | 174 | ········value·=·{ |
16 | ············Landroid/content/res/Resources$NotFoundException; | 175 | ············Landroid/content/res/Resources$NotFoundException; |
17 | ········} | 176 | ········} |
18 | ····.end·annotation | 177 | ····.end·annotation |
| |
19 | ····.line·93 | 178 | ····.line·104 |
20 | ····sget·v0,·Landroid/os/Build$VERSION;->SDK_INT:I | 179 | ····sget·v0,·Landroid/os/Build$VERSION;->SDK_INT:I |
| |
21 | ····const/16·v1,·0x15 | 180 | ····const/16·v1,·0x15 |
| |
22 | ····if-lt·v0,·v1,·:cond_0 | 181 | ····if-lt·v0,·v1,·:cond_0 |
| |
23 | ····.line·94 | 182 | ····.line·105 |
24 | ····invoke-virtual·{p0,·p1,·p2},·Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; | 183 | ····invoke-virtual·{p0,·p1,·p2},·Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; |
| |
25 | ····move-result-object·p0 | 184 | ····move-result-object·p0 |
| |
26 | ····return-object·p0 | 185 | ····return-object·p0 |
| |
27 | ····.line·96 | 186 | ····.line·107 |
28 | ····:cond_0 | 187 | ····:cond_0 |
29 | ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; | 188 | ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
| |
30 | ····move-result-object·p0 | 189 | ····move-result-object·p0 |
| |
31 | ····return-object·p0 | 190 | ····return-object·p0 |
32 | .end·method | 191 | .end·method |
Offset 48, 15 lines modified | Offset 295, 15 lines modified |
48 | ····.locals·7 | 295 | ····.locals·7 |
49 | ····.annotation·system·Ldalvik/annotation/Throws; | 296 | ····.annotation·system·Ldalvik/annotation/Throws; |
50 | ········value·=·{ | 297 | ········value·=·{ |
51 | ············Landroid/content/res/Resources$NotFoundException; | 298 | ············Landroid/content/res/Resources$NotFoundException; |
52 | ········} | 299 | ········} |
53 | ····.end·annotation | 300 | ····.end·annotation |
| |
54 | ····.line·347 | 301 | ····.line·456 |
55 | ····invoke-virtual·{p0},·Landroid/content/Context;->isRestricted()Z | 302 | ····invoke-virtual·{p0},·Landroid/content/Context;->isRestricted()Z |
| |
56 | ····move-result·v0 | 303 | ····move-result·v0 |
| |
57 | ····if-eqz·v0,·:cond_0 | 304 | ····if-eqz·v0,·:cond_0 |
| |
58 | ····const/4·p0,·0x0 | 305 | ····const/4·p0,·0x0 |
Offset 74, 33 lines modified | Offset 321, 137 lines modified |
| |
74 | ····move-object·v2,·p2 | 321 | ····move-object·v2,·p2 |
| |
75 | ····move·v3,·p3 | 322 | ····move·v3,·p3 |
| |
76 | ····move-object·v4,·p4 | 323 | ····move-object·v4,·p4 |
| |
77 | ····.line·350 | 324 | ····.line·459 |
78 | ····invoke-static/range·{v0·..·v6},·Landroidx/core/content/res/ResourcesCompat;->loadFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; | 325 | ····invoke-static/range·{v0·..·v6},·Landroidx/core/content/res/ResourcesCompat;->loadFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; |
| |
79 | ····move-result-object·p0 | 326 | ····move-result-object·p0 |
| |
80 | ····return-object·p0 | 327 | ····return-object·p0 |
81 | .end·method | 328 | .end·method |
| |
| 329 | .method·private·static·getTypedValue()Landroid/util/TypedValue; |
| 330 | ····.locals·2 |
| |
| 331 | ····.line·283 |
| 332 | ····sget-object·v0,·Landroidx/core/content/res/ResourcesCompat;->sTempTypedValue:Ljava/lang/ThreadLocal; |
| |
| 333 | ····invoke-virtual·{v0},·Ljava/lang/ThreadLocal;->get()Ljava/lang/Object; |
| |
| 334 | ····move-result-object·v0 |
| |
| 335 | ····check-cast·v0,·Landroid/util/TypedValue; |
| |
| 336 | ····if-nez·v0,·:cond_0 |
| |
| 337 | ····.line·285 |
| 338 | ····new-instance·v0,·Landroid/util/TypedValue; |
| |
| 339 | ····invoke-direct·{v0},·Landroid/util/TypedValue;-><init>()V |
| |
| 340 | ····.line·286 |
| 341 | ····sget-object·v1,·Landroidx/core/content/res/ResourcesCompat;->sTempTypedValue:Ljava/lang/ThreadLocal; |
| |
| 342 | ····invoke-virtual·{v1,·v0},·Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V |
| |
| 343 | ····:cond_0 |
| 344 | ····return-object·v0 |
| 345 | .end·method |
| |
| 346 | .method·private·static·inflateColorStateList(Landroid/content/res/Resources;ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList; |
| 347 | ····.locals·2 |
| |
| 348 | ····.line·225 |
| 349 | ····invoke-static·{p0,·p1},·Landroidx/core/content/res/ResourcesCompat;->isColorInt(Landroid/content/res/Resources;I)Z |
| |
| 350 | ····move-result·v0 |
| |
| 351 | ····const/4·v1,·0x0 |
| |
| 352 | ····if-eqz·v0,·:cond_0 |
| |
| 353 | ····return-object·v1 |
| |
| 354 | ····.line·230 |
| 355 | ····:cond_0 |
| 356 | ····invoke-virtual·{p0,·p1},·Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; |
| |
| 357 | ····move-result-object·p1 |
| |
| 358 | ····.line·232 |
| 359 | ····:try_start_0 |
| 360 | ····invoke-static·{p0,·p1,·p2},·Landroidx/core/content/res/ColorStateListInflaterCompat;->createFromXml(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList; |
| |
| 361 | ····move-result-object·p0 |
| 362 | ····:try_end_0 |
| 363 | ····.catch·Ljava/lang/Exception;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
| 364 | ····return-object·p0 |
| |
| 365 | ····:catch_0 |
| 366 | ····move-exception·p0 |
| |
| 367 | ····const-string·p1,·"ResourcesCompat" |
| |
| 368 | ····const-string·p2,·"Failed·to·inflate·ColorStateList,·leaving·it·to·the·framework" |
| |
| 369 | ····.line·234 |
| 370 | ····invoke-static·{p1,·p2,·p0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
| 371 | ····return-object·v1 |
| 372 | .end·method |
| |
| 373 | .method·private·static·isColorInt(Landroid/content/res/Resources;I)Z |
| 374 | ····.locals·2 |
| |
| 375 | ····.line·274 |
| 376 | ····invoke-static·{},·Landroidx/core/content/res/ResourcesCompat;->getTypedValue()Landroid/util/TypedValue; |
| |
| 377 | ····move-result-object·v0 |
| |
| 378 | ····const/4·v1,·0x1 |
| |
| 379 | ····.line·275 |
| 380 | ····invoke-virtual·{p0,·p1,·v0,·v1},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V |
| |
| 381 | ····.line·277 |
| 382 | ····iget·p0,·v0,·Landroid/util/TypedValue;->type:I |
| |
| 383 | ····const/16·p1,·0x1c |
| |
| 384 | ····if-lt·p0,·p1,·:cond_0 |
| |
| 385 | ····const/16·p1,·0x1f |
| |
| 386 | ····if-gt·p0,·p1,·:cond_0 |
| |
| 387 | ····goto·:goto_0 |
| |
| 388 | ····:cond_0 |
| 389 | ····const/4·v1,·0x0 |
| |
| 390 | ····:goto_0 |
| 391 | ····return·v1 |
| 392 | .end·method |
| |
82 | .method·private·static·loadFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; | 393 | .method·private·static·loadFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; |
83 | ····.locals·8 | 394 | ····.locals·8 |
| |
84 | ····.line·370 | 395 | ····.line·479 |
85 | ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 396 | ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| |
86 | ····move-result-object·v1 | 397 | ····move-result-object·v1 |
| |
87 | ····const/4·v0,·0x1 | 398 | ····const/4·v0,·0x1 |
| |
88 | ····.line·371 | 399 | ····.line·480 |
89 | ····invoke-virtual·{v1,·p1,·p2,·v0},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V | 400 | ····invoke-virtual·{v1,·p1,·p2,·v0},·Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V |
| |
90 | ····move-object·v0,·p0 | 401 | ····move-object·v0,·p0 |
| |
91 | ····move-object·v2,·p2 | 402 | ····move-object·v2,·p2 |
| |
92 | ····move·v3,·p1 | 403 | ····move·v3,·p1 |
Offset 109, 38 lines modified | Offset 460, 38 lines modified |
| |
109 | ····move-object·v5,·p4 | 460 | ····move-object·v5,·p4 |
| |
110 | ····move-object·v6,·p5 | 461 | ····move-object·v6,·p5 |
| |
111 | ····move·v7,·p6 | 462 | ····move·v7,·p6 |
| |
112 | ····.line·372 | 463 | ····.line·481 |
113 | ····invoke-static/range·{v0·..·v7},·Landroidx/core/content/res/ResourcesCompat;->loadFont(Landroid/content/Context;Landroid/content/res/Resources;Landroid/util/TypedValue;IILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; | 464 | ····invoke-static/range·{v0·..·v7},·Landroidx/core/content/res/ResourcesCompat;->loadFont(Landroid/content/Context;Landroid/content/res/Resources;Landroid/util/TypedValue;IILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; |
| |
114 | ····move-result-object·p0 | 465 | ····move-result-object·p0 |
| |
115 | ····if-nez·p0,·:cond_1 | 466 | ····if-nez·p0,·:cond_1 |
| |
116 | ····if-eqz·p4,·:cond_0 | 467 | ····if-eqz·p4,·:cond_0 |
| |
117 | ····goto·:goto_0 | 468 | ····goto·:goto_0 |
| |
118 | ····.line·375 | 469 | ····.line·484 |
119 | ····:cond_0 | 470 | ····:cond_0 |
120 | ····new-instance·p0,·Landroid/content/res/Resources$NotFoundException; | 471 | ····new-instance·p0,·Landroid/content/res/Resources$NotFoundException; |
| |
121 | ····new-instance·p2,·Ljava/lang/StringBuilder; | 472 | ····new-instance·p2,·Ljava/lang/StringBuilder; |
| |
122 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V | 473 | ····invoke-direct·{p2},·Ljava/lang/StringBuilder;-><init>()V |
| |
123 | ····const-string·p3,·"Font·resource·ID·#0x" | 474 | ····const-string·p3,·"Font·resource·ID·#0x" |
| |
124 | ····invoke-virtual·{p2,·p3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 475 | ····invoke-virtual·{p2,·p3},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
125 | ····.line·376 | 476 | ····.line·485 |
126 | ····invoke-static·{p1},·Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; | 477 | ····invoke-static·{p1},·Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; |
| |
127 | ····move-result-object·p1 | 478 | ····move-result-object·p1 |
| |
128 | ····invoke-virtual·{p2,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 479 | ····invoke-virtual·{p2,·p1},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
129 | ····const-string·p1,·"·could·not·be·retrieved." | 480 | ····const-string·p1,·"·could·not·be·retrieved." |
Offset 173, 96 lines modified | Offset 524, 96 lines modified |
| |
173 | ····move-object/from16·v9,·p5 | 524 | ····move-object/from16·v9,·p5 |
| |
174 | ····move-object/from16·v10,·p6 | 525 | ····move-object/from16·v10,·p6 |
| |
175 | ····const-string·v11,·"ResourcesCompat" | 526 | ····const-string·v11,·"ResourcesCompat" |
| |
176 | ····.line·390 | 527 | ····.line·499 |
177 | ····iget-object·v2,·v1,·Landroid/util/TypedValue;->string:Ljava/lang/CharSequence; | 528 | ····iget-object·v2,·v1,·Landroid/util/TypedValue;->string:Ljava/lang/CharSequence; |
| |
178 | ····if-eqz·v2,·:cond_a | 529 | ····if-eqz·v2,·:cond_a |
| |
179 | ····.line·395 | 530 | ····.line·504 |
180 | ····invoke-interface·{v2},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; | 531 | ····invoke-interface·{v2},·Ljava/lang/CharSequence;->toString()Ljava/lang/String; |
| |
181 | ····move-result-object·v12 | 532 | ····move-result-object·v12 |
| |
182 | ····const-string·v1,·"res/" | 533 | ····const-string·v1,·"res/" |
| |
183 | ····.line·396 | 534 | ····.line·505 |
184 | ····invoke-virtual·{v12,·v1},·Ljava/lang/String;->startsWith(Ljava/lang/String;)Z | 535 | ····invoke-virtual·{v12,·v1},·Ljava/lang/String;->startsWith(Ljava/lang/String;)Z |
| |
185 | ····move-result·v1 | 536 | ····move-result·v1 |
| |
186 | ····const/4·v13,·0x0 | 537 | ····const/4·v13,·0x0 |
| |
187 | ····const/4·v14,·-0x3 | 538 | ····const/4·v14,·-0x3 |
| |
188 | ····if-nez·v1,·:cond_1 | 539 | ····if-nez·v1,·:cond_1 |
| |
189 | ····if-eqz·v9,·:cond_0 | 540 | ····if-eqz·v9,·:cond_0 |
| |
190 | ····.line·399 | 541 | ····.line·508 |
191 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V | 542 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V |
| |
192 | ····:cond_0 | 543 | ····:cond_0 |
193 | ····return-object·v13 | 544 | ····return-object·v13 |
| |
194 | ····.line·404 | 545 | ····.line·513 |
195 | ····:cond_1 | 546 | ····:cond_1 |
196 | ····invoke-static·{v0,·v4,·v5},·Landroidx/core/graphics/TypefaceCompat;->findFromCache(Landroid/content/res/Resources;II)Landroid/graphics/Typeface; | 547 | ····invoke-static·{v0,·v4,·v5},·Landroidx/core/graphics/TypefaceCompat;->findFromCache(Landroid/content/res/Resources;II)Landroid/graphics/Typeface; |
| |
197 | ····move-result-object·v1 | 548 | ····move-result-object·v1 |
| |
198 | ····if-eqz·v1,·:cond_3 | 549 | ····if-eqz·v1,·:cond_3 |
| |
199 | ····if-eqz·v9,·:cond_2 | 550 | ····if-eqz·v9,·:cond_2 |
| |
200 | ····.line·408 | 551 | ····.line·517 |
201 | ····invoke-virtual·{v9,·v1,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackSuccessAsync(Landroid/graphics/Typeface;Landroid/os/Handler;)V | 552 | ····invoke-virtual·{v9,·v1,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackSuccessAsync(Landroid/graphics/Typeface;Landroid/os/Handler;)V |
| |
202 | ····:cond_2 | 553 | ····:cond_2 |
203 | ····return-object·v1 | 554 | ····return-object·v1 |
| |
204 | ····.line·414 | 555 | ····.line·523 |
205 | ····:cond_3 | 556 | ····:cond_3 |
206 | ····:try_start_0 | 557 | ····:try_start_0 |
207 | ····invoke-virtual·{v12},·Ljava/lang/String;->toLowerCase()Ljava/lang/String; | 558 | ····invoke-virtual·{v12},·Ljava/lang/String;->toLowerCase()Ljava/lang/String; |
| |
208 | ····move-result-object·v1 | 559 | ····move-result-object·v1 |
| |
209 | ····const-string·v2,·".xml" | 560 | ····const-string·v2,·".xml" |
| |
210 | ····invoke-virtual·{v1,·v2},·Ljava/lang/String;->endsWith(Ljava/lang/String;)Z | 561 | ····invoke-virtual·{v1,·v2},·Ljava/lang/String;->endsWith(Ljava/lang/String;)Z |
| |
211 | ····move-result·v1 | 562 | ····move-result·v1 |
| |
212 | ····if-eqz·v1,·:cond_6 | 563 | ····if-eqz·v1,·:cond_6 |
| |
213 | ····.line·415 | 564 | ····.line·524 |
214 | ····invoke-virtual·{v0,·v4},·Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; | 565 | ····invoke-virtual·{v0,·v4},·Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; |
| |
215 | ····move-result-object·v1 | 566 | ····move-result-object·v1 |
| |
216 | ····.line·417 | 567 | ····.line·526 |
217 | ····invoke-static·{v1,·v0},·Landroidx/core/content/res/FontResourcesParserCompat;->parse(Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources;)Landroidx/core/content/res/FontResourcesParserCompat$FamilyResourceEntry; | 568 | ····invoke-static·{v1,·v0},·Landroidx/core/content/res/FontResourcesParserCompat;->parse(Lorg/xmlpull/v1/XmlPullParser;Landroid/content/res/Resources;)Landroidx/core/content/res/FontResourcesParserCompat$FamilyResourceEntry; |
| |
218 | ····move-result-object·v2 | 569 | ····move-result-object·v2 |
| |
219 | ····if-nez·v2,·:cond_5 | 570 | ····if-nez·v2,·:cond_5 |
| |
220 | ····const-string·v0,·"Failed·to·find·font-family·tag" | 571 | ····const-string·v0,·"Failed·to·find·font-family·tag" |
| |
221 | ····.line·419 | 572 | ····.line·528 |
222 | ····invoke-static·{v11,·v0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I | 573 | ····invoke-static·{v11,·v0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I |
| |
223 | ····if-eqz·v9,·:cond_4 | 574 | ····if-eqz·v9,·:cond_4 |
| |
224 | ····.line·421 | 575 | ····.line·530 |
225 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V | 576 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V |
| |
226 | ····:cond_4 | 577 | ····:cond_4 |
227 | ····return-object·v13 | 578 | ····return-object·v13 |
| |
228 | ····:cond_5 | 579 | ····:cond_5 |
229 | ····move-object·v1,·p0 | 580 | ····move-object·v1,·p0 |
Offset 275, 53 lines modified | Offset 626, 53 lines modified |
| |
275 | ····move-object/from16·v6,·p5 | 626 | ····move-object/from16·v6,·p5 |
| |
276 | ····move-object/from16·v7,·p6 | 627 | ····move-object/from16·v7,·p6 |
| |
277 | ····move/from16·v8,·p7 | 628 | ····move/from16·v8,·p7 |
| |
278 | ····.line·426 | 629 | ····.line·535 |
279 | ····invoke-static/range·{v1·..·v8},·Landroidx/core/graphics/TypefaceCompat;->createFromResourcesFamilyXml(Landroid/content/Context;Landroidx/core/content/res/FontResourcesParserCompat$FamilyResourceEntry;Landroid/content/res/Resources;IILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; | 630 | ····invoke-static/range·{v1·..·v8},·Landroidx/core/graphics/TypefaceCompat;->createFromResourcesFamilyXml(Landroid/content/Context;Landroidx/core/content/res/FontResourcesParserCompat$FamilyResourceEntry;Landroid/content/res/Resources;IILandroidx/core/content/res/ResourcesCompat$FontCallback;Landroid/os/Handler;Z)Landroid/graphics/Typeface; |
| |
280 | ····move-result-object·v0 | 631 | ····move-result-object·v0 |
| |
281 | ····return-object·v0 | 632 | ····return-object·v0 |
| |
282 | ····:cond_6 | 633 | ····:cond_6 |
283 | ····move-object·v1,·p0 | 634 | ····move-object·v1,·p0 |
| |
284 | ····.line·429 | 635 | ····.line·538 |
285 | ····invoke-static·{p0,·v0,·v4,·v12,·v5},·Landroidx/core/graphics/TypefaceCompat;->createFromResourcesFontFile(Landroid/content/Context;Landroid/content/res/Resources;ILjava/lang/String;I)Landroid/graphics/Typeface; | 636 | ····invoke-static·{p0,·v0,·v4,·v12,·v5},·Landroidx/core/graphics/TypefaceCompat;->createFromResourcesFontFile(Landroid/content/Context;Landroid/content/res/Resources;ILjava/lang/String;I)Landroid/graphics/Typeface; |
| |
286 | ····move-result-object·v0 | 637 | ····move-result-object·v0 |
| |
287 | ····if-eqz·v9,·:cond_8 | 638 | ····if-eqz·v9,·:cond_8 |
| |
288 | ····if-eqz·v0,·:cond_7 | 639 | ····if-eqz·v0,·:cond_7 |
| |
289 | ····.line·433 | 640 | ····.line·542 |
290 | ····invoke-virtual·{v9,·v0,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackSuccessAsync(Landroid/graphics/Typeface;Landroid/os/Handler;)V | 641 | ····invoke-virtual·{v9,·v0,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackSuccessAsync(Landroid/graphics/Typeface;Landroid/os/Handler;)V |
| |
291 | ····goto·:goto_0 | 642 | ····goto·:goto_0 |
| |
292 | ····.line·435 | 643 | ····.line·544 |
293 | ····:cond_7 | 644 | ····:cond_7 |
294 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V | 645 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V |
295 | ····:try_end_0 | 646 | ····:try_end_0 |
296 | ····.catch·Lorg/xmlpull/v1/XmlPullParserException;·{:try_start_0·..·:try_end_0}·:catch_1 | 647 | ····.catch·Lorg/xmlpull/v1/XmlPullParserException;·{:try_start_0·..·:try_end_0}·:catch_1 |
297 | ····.catch·Ljava/io/IOException;·{:try_start_0·..·:try_end_0}·:catch_0 | 648 | ····.catch·Ljava/io/IOException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
298 | ····:cond_8 | 649 | ····:cond_8 |
299 | ····:goto_0 | 650 | ····:goto_0 |
300 | ····return-object·v0 | 651 | ····return-object·v0 |
| |
301 | ····:catch_0 | 652 | ····:catch_0 |
302 | ····move-exception·v0 | 653 | ····move-exception·v0 |
| |
303 | ····.line·443 | 654 | ····.line·552 |
304 | ····new-instance·v1,·Ljava/lang/StringBuilder; | 655 | ····new-instance·v1,·Ljava/lang/StringBuilder; |
| |
305 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | 656 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V |
| |
306 | ····const-string·v2,·"Failed·to·read·xml·resource·" | 657 | ····const-string·v2,·"Failed·to·read·xml·resource·" |
| |
307 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 658 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 335, 15 lines modified | Offset 686, 15 lines modified |
335 | ····invoke-static·{v11,·v1,·v0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 686 | ····invoke-static·{v11,·v1,·v0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
336 | ····goto·:goto_1 | 687 | ····goto·:goto_1 |
| |
337 | ····:catch_1 | 688 | ····:catch_1 |
338 | ····move-exception·v0 | 689 | ····move-exception·v0 |
| |
339 | ····.line·441 | 690 | ····.line·550 |
340 | ····new-instance·v1,·Ljava/lang/StringBuilder; | 691 | ····new-instance·v1,·Ljava/lang/StringBuilder; |
| |
341 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V | 692 | ····invoke-direct·{v1},·Ljava/lang/StringBuilder;-><init>()V |
| |
342 | ····const-string·v2,·"Failed·to·parse·xml·resource·" | 693 | ····const-string·v2,·"Failed·to·parse·xml·resource·" |
| |
343 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 694 | ····invoke-virtual·{v1,·v2},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
Offset 355, 21 lines modified | Offset 706, 21 lines modified |
355 | ····move-result-object·v1 | 706 | ····move-result-object·v1 |
| |
356 | ····invoke-static·{v11,·v1,·v0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I | 707 | ····invoke-static·{v11,·v1,·v0},·Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I |
| |
357 | ····:goto_1 | 708 | ····:goto_1 |
358 | ····if-eqz·v9,·:cond_9 | 709 | ····if-eqz·v9,·:cond_9 |
| |
359 | ····.line·446 | 710 | ····.line·555 |
360 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V | 711 | ····invoke-virtual·{v9,·v14,·v10},·Landroidx/core/content/res/ResourcesCompat$FontCallback;->callbackFailAsync(ILandroid/os/Handler;)V |
| |
361 | ····:cond_9 | 712 | ····:cond_9 |
362 | ····return-object·v13 | 713 | ····return-object·v13 |
| |
363 | ····.line·391 | 714 | ····.line·500 |
364 | ····:cond_a | 715 | ····:cond_a |
365 | ····new-instance·v2,·Landroid/content/res/Resources$NotFoundException; | 716 | ····new-instance·v2,·Landroid/content/res/Resources$NotFoundException; |
| |
366 | ····new-instance·v3,·Ljava/lang/StringBuilder; | 717 | ····new-instance·v3,·Ljava/lang/StringBuilder; |
| |
367 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V | 718 | ····invoke-direct·{v3},·Ljava/lang/StringBuilder;-><init>()V |
| |
Offset 383, 15 lines modified | Offset 734, 15 lines modified |
| |
383 | ····invoke-virtual·{v3,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 734 | ····invoke-virtual·{v3,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
384 | ····const-string·v0,·"\"·(" | 735 | ····const-string·v0,·"\"·(" |
| |
385 | ····invoke-virtual·{v3,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 736 | ····invoke-virtual·{v3,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
386 | ····.line·392 | 737 | ····.line·501 |
387 | ····invoke-static/range·{p3·..·p3},·Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; | 738 | ····invoke-static/range·{p3·..·p3},·Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; |
| |
388 | ····move-result-object·v0 | 739 | ····move-result-object·v0 |
| |
389 | ····invoke-virtual·{v3,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | 740 | ····invoke-virtual·{v3,·v0},·Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
| |
390 | ····const-string·v0,·")·is·not·a·Font:·" | 741 | ····const-string·v0,·")·is·not·a·Font:·" |