* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1258 lines
26 KiB
Smali
1258 lines
26 KiB
Smali
.class public Lcom/bumptech/glide/manager/RequestManagerRetriever;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/os/Handler$Callback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final j:Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
|
|
|
|
# instance fields
|
|
.field public volatile c:Lcom/bumptech/glide/RequestManager;
|
|
|
|
.field public final f:Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
|
|
.field public final g:Landroidx/collection/ArrayMap;
|
|
|
|
.field public final h:Lcom/bumptech/glide/manager/FrameWaiter;
|
|
|
|
.field public final i:Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/bumptech/glide/manager/RequestManagerRetriever$1;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sput-object v0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->j:Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Landroidx/collection/ArrayMap;
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
invoke-direct {v0, v1}, Landroidx/collection/SimpleArrayMap;-><init>(I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iput-object v0, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->g:Landroidx/collection/ArrayMap;
|
|
|
|
.line 11
|
|
.line 12
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
goto :goto_0
|
|
|
|
.line 15
|
|
:cond_0
|
|
sget-object p1, Lcom/bumptech/glide/manager/RequestManagerRetriever;->j:Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
|
|
.line 16
|
|
.line 17
|
|
:goto_0
|
|
iput-object p1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->f:Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v0, Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v0, p1}, Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;-><init>(Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
iput-object v0, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->i:Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-boolean p1, Lcom/bumptech/glide/load/resource/bitmap/HardwareConfigState;->f:Z
|
|
|
|
.line 27
|
|
.line 28
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 29
|
|
.line 30
|
|
sget-boolean p1, Lcom/bumptech/glide/load/resource/bitmap/HardwareConfigState;->e:Z
|
|
|
|
.line 31
|
|
.line 32
|
|
if-nez p1, :cond_1
|
|
|
|
.line 33
|
|
.line 34
|
|
goto :goto_1
|
|
|
|
.line 35
|
|
:cond_1
|
|
new-instance p1, Lcom/bumptech/glide/manager/FirstFrameWaiter;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-direct {p1}, Lcom/bumptech/glide/manager/FirstFrameWaiter;-><init>()V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
goto :goto_2
|
|
|
|
.line 41
|
|
:cond_2
|
|
:goto_1
|
|
new-instance p1, Lcom/bumptech/glide/manager/DoNothingFirstFrameWaiter;
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-direct {p1}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
:goto_2
|
|
iput-object p1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->h:Lcom/bumptech/glide/manager/FrameWaiter;
|
|
|
|
.line 47
|
|
.line 48
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;)Landroid/app/Activity;
|
|
.locals 1
|
|
|
|
.line 1
|
|
instance-of v0, p0, Landroid/app/Activity;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
check-cast p0, Landroid/app/Activity;
|
|
|
|
.line 6
|
|
.line 7
|
|
return-object p0
|
|
|
|
.line 8
|
|
:cond_0
|
|
instance-of v0, p0, Landroid/content/ContextWrapper;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
check-cast p0, Landroid/content/ContextWrapper;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p0
|
|
|
|
.line 18
|
|
invoke-static {p0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->a(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p0
|
|
|
|
.line 22
|
|
return-object p0
|
|
|
|
.line 23
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
.line 24
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/util/List;Landroidx/collection/ArrayMap;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
if-nez p0, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-interface {p0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object p0
|
|
|
|
.line 8
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result v0
|
|
|
|
.line 12
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
check-cast v0, Landroidx/fragment/app/Fragment;
|
|
|
|
.line 19
|
|
.line 20
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object v1
|
|
|
|
.line 26
|
|
if-nez v1, :cond_2
|
|
|
|
.line 27
|
|
.line 28
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
:cond_2
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result-object v1
|
|
|
|
.line 33
|
|
invoke-virtual {p1, v1, v0}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v0
|
|
|
|
.line 40
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentManager;->G()Ljava/util/List;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v0
|
|
|
|
.line 44
|
|
invoke-static {v0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->b(Ljava/util/List;Landroidx/collection/ArrayMap;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
goto :goto_0
|
|
|
|
.line 48
|
|
:cond_3
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
.locals 4
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 2
|
|
.line 3
|
|
sget-object v0, Lcom/bumptech/glide/util/Util;->a:[C
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v1
|
|
|
|
.line 13
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
instance-of v0, p1, Landroid/app/Application;
|
|
|
|
.line 16
|
|
.line 17
|
|
if-nez v0, :cond_1
|
|
|
|
.line 18
|
|
.line 19
|
|
instance-of v0, p1, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
.line 20
|
|
.line 21
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 22
|
|
.line 23
|
|
check-cast p1, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->e(Landroidx/fragment/app/FragmentActivity;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object p1
|
|
|
|
.line 29
|
|
return-object p1
|
|
|
|
.line 30
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/content/ContextWrapper;
|
|
|
|
.line 31
|
|
.line 32
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 33
|
|
.line 34
|
|
move-object v0, p1
|
|
|
|
.line 35
|
|
check-cast v0, Landroid/content/ContextWrapper;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {v0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v1
|
|
|
|
.line 41
|
|
invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object v1
|
|
|
|
.line 45
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {v0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object p1
|
|
|
|
.line 51
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result-object p1
|
|
|
|
.line 55
|
|
return-object p1
|
|
|
|
.line 56
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c:Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 57
|
|
.line 58
|
|
if-nez v0, :cond_3
|
|
|
|
.line 59
|
|
.line 60
|
|
monitor-enter p0
|
|
|
|
.line 61
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c:Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 62
|
|
.line 63
|
|
if-nez v0, :cond_2
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result-object v0
|
|
|
|
.line 69
|
|
invoke-static {v0}, Lcom/bumptech/glide/Glide;->a(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result-object v0
|
|
|
|
.line 73
|
|
iget-object v1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->f:Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;
|
|
|
|
.line 74
|
|
.line 75
|
|
new-instance v2, Lcom/bumptech/glide/manager/ApplicationLifecycle;
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-direct {v2}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
new-instance v3, Lcom/bumptech/glide/manager/EmptyRequestManagerTreeNode;
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-direct {v3}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
move-result-object p1
|
|
|
|
.line 89
|
|
invoke-interface {v1, v0, v2, v3, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever$RequestManagerFactory;->a(Lcom/bumptech/glide/Glide;Lcom/bumptech/glide/manager/Lifecycle;Lcom/bumptech/glide/manager/RequestManagerTreeNode;Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
move-result-object p1
|
|
|
|
.line 93
|
|
iput-object p1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c:Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 94
|
|
.line 95
|
|
goto :goto_0
|
|
|
|
.line 96
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 97
|
|
goto :goto_1
|
|
|
|
.line 98
|
|
:cond_2
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
.line 99
|
|
goto :goto_2
|
|
|
|
.line 100
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 101
|
|
throw p1
|
|
|
|
.line 102
|
|
:cond_3
|
|
:goto_2
|
|
iget-object p1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c:Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 103
|
|
.line 104
|
|
return-object p1
|
|
|
|
.line 105
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 106
|
|
.line 107
|
|
const-string v0, "You cannot start a load on a null Context"
|
|
|
|
.line 108
|
|
.line 109
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final d(Landroid/view/View;)Lcom/bumptech/glide/RequestManager;
|
|
.locals 12
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/bumptech/glide/util/Util;->a:[C
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
const/4 v2, 0x0
|
|
|
|
.line 12
|
|
const/4 v3, 0x1
|
|
|
|
.line 13
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
move v0, v3
|
|
|
|
.line 16
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
.line 18
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object p1
|
|
|
|
.line 24
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object p1
|
|
|
|
.line 28
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object p1
|
|
|
|
.line 32
|
|
return-object p1
|
|
|
|
.line 33
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
const-string v1, "Unable to obtain a request manager for a view without a Context"
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-static {v0, v1}, Lcom/bumptech/glide/util/Preconditions;->c(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result-object v0
|
|
|
|
.line 46
|
|
invoke-static {v0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->a(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result-object v0
|
|
|
|
.line 50
|
|
if-nez v0, :cond_2
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result-object p1
|
|
|
|
.line 56
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object p1
|
|
|
|
.line 60
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result-object p1
|
|
|
|
.line 64
|
|
return-object p1
|
|
|
|
.line 65
|
|
:cond_2
|
|
instance-of v1, v0, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
.line 66
|
|
.line 67
|
|
if-eqz v1, :cond_9
|
|
|
|
.line 68
|
|
.line 69
|
|
check-cast v0, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
.line 70
|
|
.line 71
|
|
iget-object v1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->g:Landroidx/collection/ArrayMap;
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {v1}, Landroidx/collection/SimpleArrayMap;->clear()V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->T()Landroidx/fragment/app/FragmentManager;
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result-object v4
|
|
|
|
.line 80
|
|
invoke-virtual {v4}, Landroidx/fragment/app/FragmentManager;->G()Ljava/util/List;
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result-object v4
|
|
|
|
.line 84
|
|
invoke-static {v4, v1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->b(Ljava/util/List;Landroidx/collection/ArrayMap;)V
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
const v4, 0x1020002
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {v0, v4}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
move-result-object v4
|
|
|
|
.line 94
|
|
const/4 v5, 0x0
|
|
|
|
.line 95
|
|
:goto_1
|
|
invoke-virtual {p1, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
move-result v6
|
|
|
|
.line 99
|
|
if-nez v6, :cond_4
|
|
|
|
.line 100
|
|
.line 101
|
|
invoke-virtual {v1, p1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
move-result-object v5
|
|
|
|
.line 105
|
|
check-cast v5, Landroidx/fragment/app/Fragment;
|
|
|
|
.line 106
|
|
.line 107
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 108
|
|
.line 109
|
|
goto :goto_2
|
|
|
|
.line 110
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
move-result-object v6
|
|
|
|
.line 114
|
|
instance-of v6, v6, Landroid/view/View;
|
|
|
|
.line 115
|
|
.line 116
|
|
if-eqz v6, :cond_4
|
|
|
|
.line 117
|
|
.line 118
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
.line 119
|
|
.line 120
|
|
.line 121
|
|
move-result-object p1
|
|
|
|
.line 122
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
.line 123
|
|
.line 124
|
|
goto :goto_1
|
|
|
|
.line 125
|
|
:cond_4
|
|
:goto_2
|
|
invoke-virtual {v1}, Landroidx/collection/SimpleArrayMap;->clear()V
|
|
|
|
.line 126
|
|
.line 127
|
|
.line 128
|
|
if-eqz v5, :cond_8
|
|
|
|
.line 129
|
|
.line 130
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
.line 131
|
|
.line 132
|
|
.line 133
|
|
move-result-object p1
|
|
|
|
.line 134
|
|
const-string v0, "You cannot start a load on a fragment before it is attached or after it is destroyed"
|
|
|
|
.line 135
|
|
.line 136
|
|
invoke-static {p1, v0}, Lcom/bumptech/glide/util/Preconditions;->c(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 137
|
|
.line 138
|
|
.line 139
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
.line 140
|
|
.line 141
|
|
.line 142
|
|
move-result-object p1
|
|
|
|
.line 143
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
.line 144
|
|
.line 145
|
|
.line 146
|
|
move-result-object v0
|
|
|
|
.line 147
|
|
if-ne p1, v0, :cond_5
|
|
|
|
.line 148
|
|
.line 149
|
|
move v2, v3
|
|
|
|
.line 150
|
|
:cond_5
|
|
if-nez v2, :cond_6
|
|
|
|
.line 151
|
|
.line 152
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
.line 153
|
|
.line 154
|
|
.line 155
|
|
move-result-object p1
|
|
|
|
.line 156
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 157
|
|
.line 158
|
|
.line 159
|
|
move-result-object p1
|
|
|
|
.line 160
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 161
|
|
.line 162
|
|
.line 163
|
|
move-result-object p1
|
|
|
|
.line 164
|
|
return-object p1
|
|
|
|
.line 165
|
|
:cond_6
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
.line 166
|
|
.line 167
|
|
.line 168
|
|
move-result-object p1
|
|
|
|
.line 169
|
|
if-eqz p1, :cond_7
|
|
|
|
.line 170
|
|
.line 171
|
|
iget-object p1, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->h:Lcom/bumptech/glide/manager/FrameWaiter;
|
|
|
|
.line 172
|
|
.line 173
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
.line 174
|
|
.line 175
|
|
.line 176
|
|
move-result-object v0
|
|
|
|
.line 177
|
|
invoke-interface {p1, v0}, Lcom/bumptech/glide/manager/FrameWaiter;->a(Landroidx/fragment/app/FragmentActivity;)V
|
|
|
|
.line 178
|
|
.line 179
|
|
.line 180
|
|
:cond_7
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
.line 181
|
|
.line 182
|
|
.line 183
|
|
move-result-object v10
|
|
|
|
.line 184
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
.line 185
|
|
.line 186
|
|
.line 187
|
|
move-result-object v7
|
|
|
|
.line 188
|
|
invoke-virtual {v7}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 189
|
|
.line 190
|
|
.line 191
|
|
move-result-object p1
|
|
|
|
.line 192
|
|
invoke-static {p1}, Lcom/bumptech/glide/Glide;->a(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
|
|
|
|
.line 193
|
|
.line 194
|
|
.line 195
|
|
move-result-object v8
|
|
|
|
.line 196
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->getLifecycle()Landroidx/lifecycle/Lifecycle;
|
|
|
|
.line 197
|
|
.line 198
|
|
.line 199
|
|
move-result-object v9
|
|
|
|
.line 200
|
|
invoke-virtual {v5}, Landroidx/fragment/app/Fragment;->isVisible()Z
|
|
|
|
.line 201
|
|
.line 202
|
|
.line 203
|
|
move-result v11
|
|
|
|
.line 204
|
|
iget-object v6, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->i:Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;
|
|
|
|
.line 205
|
|
.line 206
|
|
invoke-virtual/range {v6 .. v11}, Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;->a(Landroid/content/Context;Lcom/bumptech/glide/Glide;Landroidx/lifecycle/Lifecycle;Landroidx/fragment/app/FragmentManager;Z)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 207
|
|
.line 208
|
|
.line 209
|
|
move-result-object p1
|
|
|
|
.line 210
|
|
return-object p1
|
|
|
|
.line 211
|
|
:cond_8
|
|
invoke-virtual {p0, v0}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->e(Landroidx/fragment/app/FragmentActivity;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 212
|
|
.line 213
|
|
.line 214
|
|
move-result-object p1
|
|
|
|
.line 215
|
|
return-object p1
|
|
|
|
.line 216
|
|
:cond_9
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 217
|
|
.line 218
|
|
.line 219
|
|
move-result-object p1
|
|
|
|
.line 220
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 221
|
|
.line 222
|
|
.line 223
|
|
move-result-object p1
|
|
|
|
.line 224
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 225
|
|
.line 226
|
|
.line 227
|
|
move-result-object p1
|
|
|
|
.line 228
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final e(Landroidx/fragment/app/FragmentActivity;)Lcom/bumptech/glide/RequestManager;
|
|
.locals 10
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/bumptech/glide/util/Util;->a:[C
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
const/4 v2, 0x0
|
|
|
|
.line 12
|
|
const/4 v3, 0x1
|
|
|
|
.line 13
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
move v0, v3
|
|
|
|
.line 16
|
|
goto :goto_0
|
|
|
|
.line 17
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
.line 18
|
|
:goto_0
|
|
if-nez v0, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object p1
|
|
|
|
.line 24
|
|
invoke-virtual {p0, p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->c(Landroid/content/Context;)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object p1
|
|
|
|
.line 28
|
|
return-object p1
|
|
|
|
.line 29
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/app/Activity;->isDestroyed()Z
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result v0
|
|
|
|
.line 33
|
|
if-nez v0, :cond_4
|
|
|
|
.line 34
|
|
.line 35
|
|
iget-object v0, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->h:Lcom/bumptech/glide/manager/FrameWaiter;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-interface {v0, p1}, Lcom/bumptech/glide/manager/FrameWaiter;->a(Landroidx/fragment/app/FragmentActivity;)V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
invoke-static {p1}, Lcom/bumptech/glide/manager/RequestManagerRetriever;->a(Landroid/content/Context;)Landroid/app/Activity;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v0
|
|
|
|
.line 44
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result v0
|
|
|
|
.line 50
|
|
if-nez v0, :cond_2
|
|
|
|
.line 51
|
|
.line 52
|
|
goto :goto_1
|
|
|
|
.line 53
|
|
:cond_2
|
|
move v9, v2
|
|
|
|
.line 54
|
|
goto :goto_2
|
|
|
|
.line 55
|
|
:cond_3
|
|
:goto_1
|
|
move v9, v3
|
|
|
|
.line 56
|
|
:goto_2
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v0
|
|
|
|
.line 60
|
|
invoke-static {v0}, Lcom/bumptech/glide/Glide;->a(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
|
|
|
|
.line 61
|
|
.line 62
|
|
.line 63
|
|
move-result-object v6
|
|
|
|
.line 64
|
|
iget-object v7, p1, Landroidx/core/app/ComponentActivity;->c:Landroidx/lifecycle/LifecycleRegistry;
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentActivity;->T()Landroidx/fragment/app/FragmentManager;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v8
|
|
|
|
.line 70
|
|
iget-object v4, p0, Lcom/bumptech/glide/manager/RequestManagerRetriever;->i:Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;
|
|
|
|
.line 71
|
|
.line 72
|
|
move-object v5, p1
|
|
|
|
.line 73
|
|
invoke-virtual/range {v4 .. v9}, Lcom/bumptech/glide/manager/LifecycleRequestManagerRetriever;->a(Landroid/content/Context;Lcom/bumptech/glide/Glide;Landroidx/lifecycle/Lifecycle;Landroidx/fragment/app/FragmentManager;Z)Lcom/bumptech/glide/RequestManager;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object p1
|
|
|
|
.line 77
|
|
return-object p1
|
|
|
|
.line 78
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 79
|
|
.line 80
|
|
const-string v0, "You cannot start a load for a destroyed activity"
|
|
|
|
.line 81
|
|
.line 82
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final handleMessage(Landroid/os/Message;)Z
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|