* 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>
821 lines
16 KiB
Smali
821 lines
16 KiB
Smali
.class public Landroidx/core/view/KeyEventDispatcher;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/view/KeyEventDispatcher$Component;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static a:Z = false
|
|
|
|
.field public static b:Ljava/lang/reflect/Method; = null
|
|
|
|
.field public static c:Z = false
|
|
|
|
.field public static d:Ljava/lang/reflect/Field;
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Landroid/view/View;Landroid/view/KeyEvent;)Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
sget-object v0, Landroidx/core/view/ViewCompat;->a:Ljava/util/WeakHashMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 4
|
|
.line 5
|
|
const/16 v1, 0x1c
|
|
|
|
.line 6
|
|
.line 7
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
goto/16 :goto_0
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_0
|
|
sget-object v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->d:Ljava/util/ArrayList;
|
|
|
|
.line 12
|
|
.line 13
|
|
sget v0, Landroidx/core/R$id;->tag_unhandled_key_event_manager:I
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v0
|
|
|
|
.line 19
|
|
check-cast v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;
|
|
|
|
.line 20
|
|
.line 21
|
|
const/4 v1, 0x0
|
|
|
|
.line 22
|
|
if-nez v0, :cond_1
|
|
|
|
.line 23
|
|
.line 24
|
|
new-instance v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
iput-object v1, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->a:Ljava/util/WeakHashMap;
|
|
|
|
.line 30
|
|
.line 31
|
|
iput-object v1, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->b:Landroid/util/SparseArray;
|
|
|
|
.line 32
|
|
.line 33
|
|
iput-object v1, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->c:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 34
|
|
.line 35
|
|
sget v2, Landroidx/core/R$id;->tag_unhandled_key_event_manager:I
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {p0, v2, v0}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
:cond_1
|
|
iget-object p0, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->c:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 41
|
|
.line 42
|
|
if-eqz p0, :cond_2
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object p0
|
|
|
|
.line 48
|
|
if-ne p0, p1, :cond_2
|
|
|
|
.line 49
|
|
.line 50
|
|
goto :goto_0
|
|
|
|
.line 51
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-direct {p0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
iput-object p0, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->c:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 57
|
|
.line 58
|
|
iget-object p0, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->b:Landroid/util/SparseArray;
|
|
|
|
.line 59
|
|
.line 60
|
|
if-nez p0, :cond_3
|
|
|
|
.line 61
|
|
.line 62
|
|
new-instance p0, Landroid/util/SparseArray;
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-direct {p0}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
iput-object p0, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->b:Landroid/util/SparseArray;
|
|
|
|
.line 68
|
|
.line 69
|
|
:cond_3
|
|
iget-object p0, v0, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->b:Landroid/util/SparseArray;
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result v0
|
|
|
|
.line 75
|
|
const/4 v2, 0x1
|
|
|
|
.line 76
|
|
if-ne v0, v2, :cond_4
|
|
|
|
.line 77
|
|
.line 78
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result v0
|
|
|
|
.line 82
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseArray;->indexOfKey(I)I
|
|
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
move-result v0
|
|
|
|
.line 86
|
|
if-ltz v0, :cond_4
|
|
|
|
.line 87
|
|
.line 88
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object;
|
|
|
|
.line 89
|
|
.line 90
|
|
.line 91
|
|
move-result-object v1
|
|
|
|
.line 92
|
|
check-cast v1, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 93
|
|
.line 94
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseArray;->removeAt(I)V
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
:cond_4
|
|
if-nez v1, :cond_5
|
|
|
|
.line 98
|
|
.line 99
|
|
invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
move-result v0
|
|
|
|
.line 103
|
|
invoke-virtual {p0, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
move-result-object p0
|
|
|
|
.line 107
|
|
move-object v1, p0
|
|
|
|
.line 108
|
|
check-cast v1, Ljava/lang/ref/WeakReference;
|
|
|
|
.line 109
|
|
.line 110
|
|
:cond_5
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 111
|
|
.line 112
|
|
invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
.line 113
|
|
.line 114
|
|
.line 115
|
|
move-result-object p0
|
|
|
|
.line 116
|
|
check-cast p0, Landroid/view/View;
|
|
|
|
.line 117
|
|
.line 118
|
|
if-eqz p0, :cond_6
|
|
|
|
.line 119
|
|
.line 120
|
|
invoke-virtual {p0}, Landroid/view/View;->isAttachedToWindow()Z
|
|
|
|
.line 121
|
|
.line 122
|
|
.line 123
|
|
move-result v0
|
|
|
|
.line 124
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 125
|
|
.line 126
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat$UnhandledKeyEventManager;->b(Landroid/view/View;Landroid/view/KeyEvent;)Z
|
|
|
|
.line 127
|
|
.line 128
|
|
.line 129
|
|
:cond_6
|
|
return v2
|
|
|
|
.line 130
|
|
:cond_7
|
|
:goto_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 131
|
|
return p0
|
|
.end method
|
|
|
|
.method public static b(Landroidx/core/view/KeyEventDispatcher$Component;Landroid/view/View;Landroid/view/Window$Callback;Landroid/view/KeyEvent;)Z
|
|
.locals 7
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
if-nez p0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
goto/16 :goto_4
|
|
|
|
.line 5
|
|
.line 6
|
|
:cond_0
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 7
|
|
.line 8
|
|
const/16 v2, 0x1c
|
|
|
|
.line 9
|
|
.line 10
|
|
if-lt v1, v2, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-interface {p0, p3}, Landroidx/core/view/KeyEventDispatcher$Component;->C(Landroid/view/KeyEvent;)Z
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result p0
|
|
|
|
.line 16
|
|
return p0
|
|
|
|
.line 17
|
|
:cond_1
|
|
instance-of v1, p2, Landroid/app/Activity;
|
|
|
|
.line 18
|
|
.line 19
|
|
const/4 v2, 0x0
|
|
|
|
.line 20
|
|
const/4 v3, 0x1
|
|
|
|
.line 21
|
|
if-eqz v1, :cond_9
|
|
|
|
.line 22
|
|
.line 23
|
|
check-cast p2, Landroid/app/Activity;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p2}, Landroid/app/Activity;->onUserInteraction()V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p2}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object p0
|
|
|
|
.line 32
|
|
const/16 p1, 0x8
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p0, p1}, Landroid/view/Window;->hasFeature(I)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result p1
|
|
|
|
.line 38
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p2}, Landroid/app/Activity;->getActionBar()Landroid/app/ActionBar;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object p1
|
|
|
|
.line 44
|
|
invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result v1
|
|
|
|
.line 48
|
|
const/16 v4, 0x52
|
|
|
|
.line 49
|
|
.line 50
|
|
if-ne v1, v4, :cond_5
|
|
|
|
.line 51
|
|
.line 52
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 53
|
|
.line 54
|
|
sget-boolean v1, Landroidx/core/view/KeyEventDispatcher;->a:Z
|
|
|
|
.line 55
|
|
.line 56
|
|
if-nez v1, :cond_2
|
|
|
|
.line 57
|
|
.line 58
|
|
:try_start_0
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object v1
|
|
|
|
.line 62
|
|
const-string v4, "onMenuKeyEvent"
|
|
|
|
.line 63
|
|
.line 64
|
|
new-array v5, v3, [Ljava/lang/Class;
|
|
|
|
.line 65
|
|
.line 66
|
|
const-class v6, Landroid/view/KeyEvent;
|
|
|
|
.line 67
|
|
.line 68
|
|
aput-object v6, v5, v0
|
|
|
|
.line 69
|
|
.line 70
|
|
invoke-virtual {v1, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result-object v1
|
|
|
|
.line 74
|
|
sput-object v1, Landroidx/core/view/KeyEventDispatcher;->b:Ljava/lang/reflect/Method;
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 75
|
|
.line 76
|
|
:catch_0
|
|
sput-boolean v3, Landroidx/core/view/KeyEventDispatcher;->a:Z
|
|
|
|
.line 77
|
|
.line 78
|
|
:cond_2
|
|
sget-object v1, Landroidx/core/view/KeyEventDispatcher;->b:Ljava/lang/reflect/Method;
|
|
|
|
.line 79
|
|
.line 80
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 81
|
|
.line 82
|
|
:try_start_1
|
|
new-array v4, v3, [Ljava/lang/Object;
|
|
|
|
.line 83
|
|
.line 84
|
|
aput-object p3, v4, v0
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-virtual {v1, p1, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
move-result-object p1
|
|
|
|
.line 90
|
|
if-nez p1, :cond_3
|
|
|
|
.line 91
|
|
.line 92
|
|
goto :goto_0
|
|
|
|
.line 93
|
|
:cond_3
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
.line 94
|
|
.line 95
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
move-result v0
|
|
:try_end_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 99
|
|
:catch_1
|
|
:cond_4
|
|
:goto_0
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 100
|
|
.line 101
|
|
goto :goto_1
|
|
|
|
.line 102
|
|
:cond_5
|
|
invoke-virtual {p0, p3}, Landroid/view/Window;->superDispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
.line 103
|
|
.line 104
|
|
.line 105
|
|
move-result p1
|
|
|
|
.line 106
|
|
if-eqz p1, :cond_6
|
|
|
|
.line 107
|
|
.line 108
|
|
goto :goto_1
|
|
|
|
.line 109
|
|
:cond_6
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
move-result-object p0
|
|
|
|
.line 113
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->d(Landroid/view/View;Landroid/view/KeyEvent;)Z
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
move-result p1
|
|
|
|
.line 117
|
|
if-eqz p1, :cond_7
|
|
|
|
.line 118
|
|
.line 119
|
|
goto :goto_1
|
|
|
|
.line 120
|
|
:cond_7
|
|
if-eqz p0, :cond_8
|
|
|
|
.line 121
|
|
.line 122
|
|
invoke-virtual {p0}, Landroid/view/View;->getKeyDispatcherState()Landroid/view/KeyEvent$DispatcherState;
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
move-result-object v2
|
|
|
|
.line 126
|
|
:cond_8
|
|
invoke-virtual {p3, p2, v2, p2}, Landroid/view/KeyEvent;->dispatch(Landroid/view/KeyEvent$Callback;Landroid/view/KeyEvent$DispatcherState;Ljava/lang/Object;)Z
|
|
|
|
.line 127
|
|
.line 128
|
|
.line 129
|
|
move-result v3
|
|
|
|
.line 130
|
|
:goto_1
|
|
return v3
|
|
|
|
.line 131
|
|
:cond_9
|
|
instance-of v1, p2, Landroid/app/Dialog;
|
|
|
|
.line 132
|
|
.line 133
|
|
if-eqz v1, :cond_10
|
|
|
|
.line 134
|
|
.line 135
|
|
check-cast p2, Landroid/app/Dialog;
|
|
|
|
.line 136
|
|
.line 137
|
|
sget-boolean p0, Landroidx/core/view/KeyEventDispatcher;->c:Z
|
|
|
|
.line 138
|
|
.line 139
|
|
if-nez p0, :cond_a
|
|
|
|
.line 140
|
|
.line 141
|
|
:try_start_2
|
|
const-class p0, Landroid/app/Dialog;
|
|
|
|
.line 142
|
|
.line 143
|
|
const-string p1, "mOnKeyListener"
|
|
|
|
.line 144
|
|
.line 145
|
|
invoke-virtual {p0, p1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
move-result-object p0
|
|
|
|
.line 149
|
|
sput-object p0, Landroidx/core/view/KeyEventDispatcher;->d:Ljava/lang/reflect/Field;
|
|
|
|
.line 150
|
|
.line 151
|
|
invoke-virtual {p0, v3}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
|
|
:try_end_2
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.line 152
|
|
.line 153
|
|
.line 154
|
|
:catch_2
|
|
sput-boolean v3, Landroidx/core/view/KeyEventDispatcher;->c:Z
|
|
|
|
.line 155
|
|
.line 156
|
|
:cond_a
|
|
sget-object p0, Landroidx/core/view/KeyEventDispatcher;->d:Ljava/lang/reflect/Field;
|
|
|
|
.line 157
|
|
.line 158
|
|
if-eqz p0, :cond_b
|
|
|
|
.line 159
|
|
.line 160
|
|
:try_start_3
|
|
invoke-virtual {p0, p2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 161
|
|
.line 162
|
|
.line 163
|
|
move-result-object p0
|
|
|
|
.line 164
|
|
check-cast p0, Landroid/content/DialogInterface$OnKeyListener;
|
|
:try_end_3
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_3 .. :try_end_3} :catch_3
|
|
|
|
.line 165
|
|
.line 166
|
|
goto :goto_2
|
|
|
|
.line 167
|
|
:catch_3
|
|
:cond_b
|
|
move-object p0, v2
|
|
|
|
.line 168
|
|
:goto_2
|
|
if-eqz p0, :cond_c
|
|
|
|
.line 169
|
|
.line 170
|
|
invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I
|
|
|
|
.line 171
|
|
.line 172
|
|
.line 173
|
|
move-result p1
|
|
|
|
.line 174
|
|
invoke-interface {p0, p2, p1, p3}, Landroid/content/DialogInterface$OnKeyListener;->onKey(Landroid/content/DialogInterface;ILandroid/view/KeyEvent;)Z
|
|
|
|
.line 175
|
|
.line 176
|
|
.line 177
|
|
move-result p0
|
|
|
|
.line 178
|
|
if-eqz p0, :cond_c
|
|
|
|
.line 179
|
|
.line 180
|
|
goto :goto_3
|
|
|
|
.line 181
|
|
:cond_c
|
|
invoke-virtual {p2}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
|
|
|
|
.line 182
|
|
.line 183
|
|
.line 184
|
|
move-result-object p0
|
|
|
|
.line 185
|
|
invoke-virtual {p0, p3}, Landroid/view/Window;->superDispatchKeyEvent(Landroid/view/KeyEvent;)Z
|
|
|
|
.line 186
|
|
.line 187
|
|
.line 188
|
|
move-result p1
|
|
|
|
.line 189
|
|
if-eqz p1, :cond_d
|
|
|
|
.line 190
|
|
.line 191
|
|
goto :goto_3
|
|
|
|
.line 192
|
|
:cond_d
|
|
invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
.line 193
|
|
.line 194
|
|
.line 195
|
|
move-result-object p0
|
|
|
|
.line 196
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->d(Landroid/view/View;Landroid/view/KeyEvent;)Z
|
|
|
|
.line 197
|
|
.line 198
|
|
.line 199
|
|
move-result p1
|
|
|
|
.line 200
|
|
if-eqz p1, :cond_e
|
|
|
|
.line 201
|
|
.line 202
|
|
goto :goto_3
|
|
|
|
.line 203
|
|
:cond_e
|
|
if-eqz p0, :cond_f
|
|
|
|
.line 204
|
|
.line 205
|
|
invoke-virtual {p0}, Landroid/view/View;->getKeyDispatcherState()Landroid/view/KeyEvent$DispatcherState;
|
|
|
|
.line 206
|
|
.line 207
|
|
.line 208
|
|
move-result-object v2
|
|
|
|
.line 209
|
|
:cond_f
|
|
invoke-virtual {p3, p2, v2, p2}, Landroid/view/KeyEvent;->dispatch(Landroid/view/KeyEvent$Callback;Landroid/view/KeyEvent$DispatcherState;Ljava/lang/Object;)Z
|
|
|
|
.line 210
|
|
.line 211
|
|
.line 212
|
|
move-result v3
|
|
|
|
.line 213
|
|
:goto_3
|
|
return v3
|
|
|
|
.line 214
|
|
:cond_10
|
|
if-eqz p1, :cond_11
|
|
|
|
.line 215
|
|
.line 216
|
|
invoke-static {p1, p3}, Landroidx/core/view/ViewCompat;->d(Landroid/view/View;Landroid/view/KeyEvent;)Z
|
|
|
|
.line 217
|
|
.line 218
|
|
.line 219
|
|
move-result p1
|
|
|
|
.line 220
|
|
if-nez p1, :cond_12
|
|
|
|
.line 221
|
|
.line 222
|
|
:cond_11
|
|
invoke-interface {p0, p3}, Landroidx/core/view/KeyEventDispatcher$Component;->C(Landroid/view/KeyEvent;)Z
|
|
|
|
.line 223
|
|
.line 224
|
|
.line 225
|
|
move-result p0
|
|
|
|
.line 226
|
|
if-eqz p0, :cond_13
|
|
|
|
.line 227
|
|
.line 228
|
|
:cond_12
|
|
return v3
|
|
|
|
.line 229
|
|
:cond_13
|
|
:goto_4
|
|
return v0
|
|
.end method
|