- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
1386 lines
34 KiB
Smali
1386 lines
34 KiB
Smali
.class Landroidx/core/app/NotificationCompatJellybean;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field static final EXTRA_ALLOW_GENERATED_REPLIES:Ljava/lang/String; = "android.support.allowGeneratedReplies"
|
|
|
|
.field static final EXTRA_DATA_ONLY_REMOTE_INPUTS:Ljava/lang/String; = "android.support.dataRemoteInputs"
|
|
|
|
.field private static final KEY_ACTION_INTENT:Ljava/lang/String; = "actionIntent"
|
|
|
|
.field private static final KEY_ALLOWED_DATA_TYPES:Ljava/lang/String; = "allowedDataTypes"
|
|
|
|
.field private static final KEY_ALLOW_FREE_FORM_INPUT:Ljava/lang/String; = "allowFreeFormInput"
|
|
|
|
.field private static final KEY_CHOICES:Ljava/lang/String; = "choices"
|
|
|
|
.field private static final KEY_DATA_ONLY_REMOTE_INPUTS:Ljava/lang/String; = "dataOnlyRemoteInputs"
|
|
|
|
.field private static final KEY_EXTRAS:Ljava/lang/String; = "extras"
|
|
|
|
.field private static final KEY_ICON:Ljava/lang/String; = "icon"
|
|
|
|
.field private static final KEY_LABEL:Ljava/lang/String; = "label"
|
|
|
|
.field private static final KEY_REMOTE_INPUTS:Ljava/lang/String; = "remoteInputs"
|
|
|
|
.field private static final KEY_RESULT_KEY:Ljava/lang/String; = "resultKey"
|
|
|
|
.field private static final KEY_SEMANTIC_ACTION:Ljava/lang/String; = "semanticAction"
|
|
|
|
.field private static final KEY_SHOWS_USER_INTERFACE:Ljava/lang/String; = "showsUserInterface"
|
|
|
|
.field private static final KEY_TITLE:Ljava/lang/String; = "title"
|
|
|
|
.field public static final TAG:Ljava/lang/String; = "NotificationCompat"
|
|
|
|
.field private static sActionIconField:Ljava/lang/reflect/Field;
|
|
|
|
.field private static sActionIntentField:Ljava/lang/reflect/Field;
|
|
|
|
.field private static sActionTitleField:Ljava/lang/reflect/Field;
|
|
|
|
.field private static sActionsAccessFailed:Z
|
|
|
|
.field private static sActionsField:Ljava/lang/reflect/Field;
|
|
|
|
.field private static final sActionsLock:Ljava/lang/Object;
|
|
|
|
.field private static sExtrasField:Ljava/lang/reflect/Field;
|
|
|
|
.field private static sExtrasFieldAccessFailed:Z
|
|
|
|
.field private static final sExtrasLock:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 57
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Landroidx/core/app/NotificationCompatJellybean;->sExtrasLock:Ljava/lang/Object;
|
|
|
|
.line 61
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 352
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static buildActionExtrasMap(Ljava/util/List;)Landroid/util/SparseArray;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Landroid/os/Bundle;",
|
|
">;)",
|
|
"Landroid/util/SparseArray<",
|
|
"Landroid/os/Bundle;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 71
|
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_2
|
|
|
|
.line 72
|
|
invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/os/Bundle;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 75
|
|
new-instance v1, Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v1}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
.line 77
|
|
:cond_0
|
|
invoke-virtual {v1, v2, v3}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private static ensureActionReflectionReadyLocked()Z
|
|
.locals 5
|
|
|
|
const-string v0, "Unable to access notification actions"
|
|
|
|
const-string v1, "NotificationCompat"
|
|
|
|
sget-boolean v2, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x1
|
|
|
|
:try_start_0
|
|
sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionsField:Ljava/lang/reflect/Field;
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
const-string v3, "android.app.Notification$Action"
|
|
|
|
.line 217
|
|
invoke-static {v3}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "icon"
|
|
|
|
.line 218
|
|
invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v4
|
|
|
|
sput-object v4, Landroidx/core/app/NotificationCompatJellybean;->sActionIconField:Ljava/lang/reflect/Field;
|
|
|
|
const-string v4, "title"
|
|
|
|
.line 219
|
|
invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v4
|
|
|
|
sput-object v4, Landroidx/core/app/NotificationCompatJellybean;->sActionTitleField:Ljava/lang/reflect/Field;
|
|
|
|
const-string v4, "actionIntent"
|
|
|
|
.line 220
|
|
invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v3
|
|
|
|
sput-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionIntentField:Ljava/lang/reflect/Field;
|
|
|
|
const-class v3, Landroid/app/Notification;
|
|
|
|
const-string v4, "actions"
|
|
|
|
.line 221
|
|
invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v3
|
|
|
|
sput-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionsField:Ljava/lang/reflect/Field;
|
|
|
|
.line 222
|
|
invoke-virtual {v3, v2}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception v3
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v3
|
|
|
|
goto :goto_1
|
|
|
|
.line 228
|
|
:goto_0
|
|
invoke-static {v1, v0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
sput-boolean v2, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
|
|
|
|
goto :goto_2
|
|
|
|
.line 225
|
|
:goto_1
|
|
invoke-static {v1, v0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
sput-boolean v2, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
|
|
|
|
:cond_1
|
|
:goto_2
|
|
sget-boolean v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private static fromBundle(Landroid/os/Bundle;)Landroidx/core/app/RemoteInput;
|
|
.locals 9
|
|
|
|
const-string v0, "allowedDataTypes"
|
|
|
|
.line 278
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
|
|
|
|
move-result-object v0
|
|
|
|
.line 279
|
|
new-instance v8, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v8}, Ljava/util/HashSet;-><init>()V
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 281
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
.line 282
|
|
invoke-interface {v8, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 285
|
|
:cond_0
|
|
new-instance v0, Landroidx/core/app/RemoteInput;
|
|
|
|
const-string v1, "resultKey"
|
|
|
|
invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v1, "label"
|
|
|
|
.line 286
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v1, "choices"
|
|
|
|
.line 287
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getCharSequenceArray(Ljava/lang/String;)[Ljava/lang/CharSequence;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v1, "allowFreeFormInput"
|
|
|
|
.line 288
|
|
invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const-string v1, "extras"
|
|
|
|
.line 290
|
|
invoke-virtual {p0, v1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object v7
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v8}, Landroidx/core/app/RemoteInput;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;[Ljava/lang/CharSequence;ZILandroid/os/Bundle;Ljava/util/Set;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
|
|
.locals 3
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 317
|
|
:cond_0
|
|
array-length v0, p0
|
|
|
|
new-array v0, v0, [Landroidx/core/app/RemoteInput;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 318
|
|
:goto_0
|
|
array-length v2, p0
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 319
|
|
aget-object v2, p0, v1
|
|
|
|
invoke-static {v2}, Landroidx/core/app/NotificationCompatJellybean;->fromBundle(Landroid/os/Bundle;)Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getAction(Landroid/app/Notification;I)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 5
|
|
|
|
sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
|
|
|
|
.line 168
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 170
|
|
:try_start_0
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getActionObjectsLocked(Landroid/app/Notification;)[Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 172
|
|
aget-object v2, v2, p1
|
|
|
|
.line 174
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
const-string v3, "android.support.actionExtras"
|
|
|
|
.line 176
|
|
invoke-virtual {p0, v3}, Landroid/os/Bundle;->getSparseParcelableArray(Ljava/lang/String;)Landroid/util/SparseArray;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 179
|
|
invoke-virtual {p0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/os/Bundle;
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move-object p0, v1
|
|
|
|
:goto_0
|
|
sget-object p1, Landroidx/core/app/NotificationCompatJellybean;->sActionIconField:Ljava/lang/reflect/Field;
|
|
|
|
.line 182
|
|
invoke-virtual {p1, v2}, Ljava/lang/reflect/Field;->getInt(Ljava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sActionTitleField:Ljava/lang/reflect/Field;
|
|
|
|
.line 183
|
|
invoke-virtual {v3, v2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/CharSequence;
|
|
|
|
sget-object v4, Landroidx/core/app/NotificationCompatJellybean;->sActionIntentField:Ljava/lang/reflect/Field;
|
|
|
|
.line 184
|
|
invoke-virtual {v4, v2}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/app/PendingIntent;
|
|
|
|
.line 182
|
|
invoke-static {p1, v3, v2, p0}, Landroidx/core/app/NotificationCompatJellybean;->readAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:try_start_1
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:goto_1
|
|
const-string p1, "NotificationCompat"
|
|
|
|
const-string v2, "Unable to access notification actions"
|
|
|
|
.line 188
|
|
invoke-static {p1, v2, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
const/4 p0, 0x1
|
|
|
|
sput-boolean p0, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
|
|
|
|
.line 191
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:goto_2
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static getActionCount(Landroid/app/Notification;)I
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
|
|
|
|
.line 160
|
|
monitor-enter v0
|
|
|
|
.line 161
|
|
:try_start_0
|
|
invoke-static {p0}, Landroidx/core/app/NotificationCompatJellybean;->getActionObjectsLocked(Landroid/app/Notification;)[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 162
|
|
array-length p0, p0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
monitor-exit v0
|
|
|
|
return p0
|
|
|
|
.line 163
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static getActionFromBundle(Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 15
|
|
|
|
const-string v0, "extras"
|
|
|
|
.line 236
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v3, "android.support.allowGeneratedReplies"
|
|
|
|
.line 239
|
|
invoke-virtual {v1, v3, v2}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
move-result v2
|
|
|
|
:cond_0
|
|
move v10, v2
|
|
|
|
.line 241
|
|
new-instance v1, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
const-string v2, "icon"
|
|
|
|
.line 242
|
|
invoke-virtual {p0, v2}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v4
|
|
|
|
const-string v2, "title"
|
|
|
|
.line 243
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v2, "actionIntent"
|
|
|
|
.line 244
|
|
invoke-virtual {p0, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v2
|
|
|
|
move-object v6, v2
|
|
|
|
check-cast v6, Landroid/app/PendingIntent;
|
|
|
|
.line 245
|
|
invoke-virtual {p0, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v0, "remoteInputs"
|
|
|
|
.line 246
|
|
invoke-static {p0, v0}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v0, "dataOnlyRemoteInputs"
|
|
|
|
.line 247
|
|
invoke-static {p0, v0}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v0, "semanticAction"
|
|
|
|
.line 249
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
|
|
|
|
move-result v11
|
|
|
|
const-string v0, "showsUserInterface"
|
|
|
|
.line 250
|
|
invoke-virtual {p0, v0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v12
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
move-object v3, v1
|
|
|
|
invoke-direct/range {v3 .. v14}, Landroidx/core/app/NotificationCompat$Action;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;[Landroidx/core/app/RemoteInput;ZIZZZ)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private static getActionObjectsLocked(Landroid/app/Notification;)[Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sActionsLock:Ljava/lang/Object;
|
|
|
|
.line 196
|
|
monitor-enter v0
|
|
|
|
.line 197
|
|
:try_start_0
|
|
invoke-static {}, Landroidx/core/app/NotificationCompatJellybean;->ensureActionReflectionReadyLocked()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 198
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-object v2
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:try_start_1
|
|
sget-object v1, Landroidx/core/app/NotificationCompatJellybean;->sActionsField:Ljava/lang/reflect/Field;
|
|
|
|
.line 201
|
|
invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
:try_end_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:try_start_2
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
const-string v1, "NotificationCompat"
|
|
|
|
const-string v3, "Unable to access notification actions"
|
|
|
|
.line 203
|
|
invoke-static {v1, v3, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
const/4 p0, 0x1
|
|
|
|
sput-boolean p0, Landroidx/core/app/NotificationCompatJellybean;->sActionsAccessFailed:Z
|
|
|
|
.line 205
|
|
monitor-exit v0
|
|
|
|
return-object v2
|
|
|
|
.line 207
|
|
:goto_0
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private static getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
|
|
.locals 3
|
|
|
|
.line 342
|
|
invoke-virtual {p0, p1}, Landroid/os/Bundle;->getParcelableArray(Ljava/lang/String;)[Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 343
|
|
instance-of v1, v0, [Landroid/os/Bundle;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 346
|
|
:cond_0
|
|
array-length v1, v0
|
|
|
|
const-class v2, [Landroid/os/Bundle;
|
|
|
|
invoke-static {v0, v1, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Landroid/os/Bundle;
|
|
|
|
.line 348
|
|
invoke-virtual {p0, p1, v0}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
|
|
|
|
return-object v0
|
|
|
|
.line 344
|
|
:cond_1
|
|
:goto_0
|
|
check-cast v0, [Landroid/os/Bundle;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getBundleForAction(Landroidx/core/app/NotificationCompat$Action;)Landroid/os/Bundle;
|
|
.locals 4
|
|
|
|
.line 256
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 257
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getIconCompat()Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 258
|
|
invoke-virtual {v1}, Landroidx/core/graphics/drawable/IconCompat;->getResId()I
|
|
|
|
move-result v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "icon"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
const-string v1, "title"
|
|
|
|
.line 259
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
const-string v1, "actionIntent"
|
|
|
|
.line 260
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getActionIntent()Landroid/app/PendingIntent;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
|
|
|
|
.line 262
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 263
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 265
|
|
:cond_1
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:goto_1
|
|
const-string v2, "android.support.allowGeneratedReplies"
|
|
|
|
.line 268
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
|
|
|
|
move-result v3
|
|
|
|
.line 267
|
|
invoke-virtual {v1, v2, v3}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
const-string v2, "extras"
|
|
|
|
.line 269
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
.line 270
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Landroidx/core/app/NotificationCompatJellybean;->toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "remoteInputs"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
|
|
|
|
const-string v1, "showsUserInterface"
|
|
|
|
.line 271
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getShowsUserInterface()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
const-string v1, "semanticAction"
|
|
|
|
.line 272
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompat$Action;->getSemanticAction()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {v0, v1, p0}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
.locals 6
|
|
|
|
sget-object v0, Landroidx/core/app/NotificationCompatJellybean;->sExtrasLock:Ljava/lang/Object;
|
|
|
|
.line 88
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-boolean v1, Landroidx/core/app/NotificationCompatJellybean;->sExtrasFieldAccessFailed:Z
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 90
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
return-object v2
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_1
|
|
sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
const-class v3, Landroid/app/Notification;
|
|
|
|
const-string v4, "extras"
|
|
|
|
.line 94
|
|
invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v3
|
|
|
|
const-class v4, Landroid/os/Bundle;
|
|
|
|
.line 95
|
|
invoke-virtual {v3}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
const-string p0, "NotificationCompat"
|
|
|
|
const-string v3, "Notification.extras field is not of type Bundle"
|
|
|
|
.line 96
|
|
invoke-static {p0, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
sput-boolean v1, Landroidx/core/app/NotificationCompatJellybean;->sExtrasFieldAccessFailed:Z
|
|
:try_end_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 98
|
|
:try_start_2
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
return-object v2
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 100
|
|
:cond_1
|
|
:try_start_3
|
|
invoke-virtual {v3, v1}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
|
|
|
|
sput-object v3, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
|
|
|
|
:cond_2
|
|
sget-object v3, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
|
|
|
|
.line 103
|
|
invoke-virtual {v3, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/os/Bundle;
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
.line 105
|
|
new-instance v3, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v3}, Landroid/os/Bundle;-><init>()V
|
|
|
|
sget-object v4, Landroidx/core/app/NotificationCompatJellybean;->sExtrasField:Ljava/lang/reflect/Field;
|
|
|
|
.line 106
|
|
invoke-virtual {v4, p0, v3}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
:try_end_3
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catch Ljava/lang/NoSuchFieldException; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
.line 108
|
|
:cond_3
|
|
:try_start_4
|
|
monitor-exit v0
|
|
|
|
return-object v3
|
|
|
|
:goto_0
|
|
const-string v3, "NotificationCompat"
|
|
|
|
const-string v4, "Unable to access notification extras"
|
|
|
|
.line 112
|
|
invoke-static {v3, v4, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
goto :goto_2
|
|
|
|
:goto_1
|
|
const-string v3, "NotificationCompat"
|
|
|
|
const-string v4, "Unable to access notification extras"
|
|
|
|
.line 110
|
|
invoke-static {v3, v4, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
:goto_2
|
|
sput-boolean v1, Landroidx/core/app/NotificationCompatJellybean;->sExtrasFieldAccessFailed:Z
|
|
|
|
.line 115
|
|
monitor-exit v0
|
|
|
|
return-object v2
|
|
|
|
.line 116
|
|
:goto_3
|
|
monitor-exit v0
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static readAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;)Landroidx/core/app/NotificationCompat$Action;
|
|
.locals 13
|
|
|
|
move-object/from16 v4, p3
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
const-string v0, "android.support.remoteInputs"
|
|
|
|
.line 126
|
|
invoke-static {v4, v0}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
.line 125
|
|
invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.support.dataRemoteInputs"
|
|
|
|
.line 129
|
|
invoke-static {v4, v1}, Landroidx/core/app/NotificationCompatJellybean;->getBundleArrayFromBundle(Landroid/os/Bundle;Ljava/lang/String;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
.line 128
|
|
invoke-static {v1}, Landroidx/core/app/NotificationCompatJellybean;->fromBundleArray([Landroid/os/Bundle;)[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "android.support.allowGeneratedReplies"
|
|
|
|
.line 130
|
|
invoke-virtual {v4, v2}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
move-object v5, v0
|
|
|
|
move-object v6, v1
|
|
|
|
move v7, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v5, v0
|
|
|
|
move-object v6, v5
|
|
|
|
move v7, v1
|
|
|
|
.line 132
|
|
:goto_0
|
|
new-instance v12, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x1
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
move-object v0, v12
|
|
|
|
move v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, p2
|
|
|
|
move-object/from16 v4, p3
|
|
|
|
invoke-direct/range {v0 .. v11}, Landroidx/core/app/NotificationCompat$Action;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;Landroid/os/Bundle;[Landroidx/core/app/RemoteInput;[Landroidx/core/app/RemoteInput;ZIZZZ)V
|
|
|
|
return-object v12
|
|
.end method
|
|
|
|
.method private static toBundle(Landroidx/core/app/RemoteInput;)Landroid/os/Bundle;
|
|
.locals 3
|
|
|
|
.line 295
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
.line 296
|
|
invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getResultKey()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "resultKey"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v1, "label"
|
|
|
|
.line 297
|
|
invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getLabel()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putCharSequence(Ljava/lang/String;Ljava/lang/CharSequence;)V
|
|
|
|
const-string v1, "choices"
|
|
|
|
.line 298
|
|
invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getChoices()[Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putCharSequenceArray(Ljava/lang/String;[Ljava/lang/CharSequence;)V
|
|
|
|
const-string v1, "allowFreeFormInput"
|
|
|
|
.line 299
|
|
invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getAllowFreeFormInput()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
const-string v1, "extras"
|
|
|
|
.line 300
|
|
invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
.line 302
|
|
invoke-virtual {p0}, Landroidx/core/app/RemoteInput;->getAllowedDataTypes()Ljava/util/Set;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 303
|
|
invoke-interface {p0}, Ljava/util/Set;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 304
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-interface {p0}, Ljava/util/Set;->size()I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
.line 305
|
|
invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
.line 306
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string p0, "allowedDataTypes"
|
|
|
|
.line 308
|
|
invoke-virtual {v0, p0, v1}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
|
|
.locals 3
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 328
|
|
:cond_0
|
|
array-length v0, p0
|
|
|
|
new-array v0, v0, [Landroid/os/Bundle;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 329
|
|
:goto_0
|
|
array-length v2, p0
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 330
|
|
aget-object v2, p0, v1
|
|
|
|
invoke-static {v2}, Landroidx/core/app/NotificationCompatJellybean;->toBundle(Landroidx/core/app/RemoteInput;)Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static writeActionAndGetExtras(Landroid/app/Notification$Builder;Landroidx/core/app/NotificationCompat$Action;)Landroid/os/Bundle;
|
|
.locals 3
|
|
|
|
.line 140
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getIconCompat()Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 142
|
|
invoke-virtual {v0}, Landroidx/core/graphics/drawable/IconCompat;->getResId()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 143
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
.line 144
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getActionIntent()Landroid/app/PendingIntent;
|
|
|
|
move-result-object v2
|
|
|
|
.line 141
|
|
invoke-virtual {p0, v0, v1, v2}, Landroid/app/Notification$Builder;->addAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;
|
|
|
|
.line 145
|
|
new-instance p0, Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
|
|
|
|
.line 146
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 148
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.support.remoteInputs"
|
|
|
|
.line 147
|
|
invoke-virtual {p0, v1, v0}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
|
|
|
|
.line 150
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getDataOnlyRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 152
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getDataOnlyRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroidx/core/app/NotificationCompatJellybean;->toBundleArray([Landroidx/core/app/RemoteInput;)[Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android.support.dataRemoteInputs"
|
|
|
|
.line 151
|
|
invoke-virtual {p0, v1, v0}, Landroid/os/Bundle;->putParcelableArray(Ljava/lang/String;[Landroid/os/Parcelable;)V
|
|
|
|
:cond_2
|
|
const-string v0, "android.support.allowGeneratedReplies"
|
|
|
|
.line 155
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
|
|
|
|
move-result p1
|
|
|
|
.line 154
|
|
invoke-virtual {p0, v0, p1}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
return-object p0
|
|
.end method
|