Files
rr3-apk/smali/androidx/core/app/NotificationCompat$TvExtender.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

337 lines
9.3 KiB
Smali

.class public final Landroidx/core/app/NotificationCompat$TvExtender;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Landroidx/core/app/NotificationCompat$Extender;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/app/NotificationCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "TvExtender"
.end annotation
# static fields
.field static final EXTRA_CHANNEL_ID:Ljava/lang/String; = "channel_id"
.field static final EXTRA_CONTENT_INTENT:Ljava/lang/String; = "content_intent"
.field static final EXTRA_DELETE_INTENT:Ljava/lang/String; = "delete_intent"
.field private static final EXTRA_FLAGS:Ljava/lang/String; = "flags"
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.end field
.field static final EXTRA_SUPPRESS_SHOW_OVER_APPS:Ljava/lang/String; = "suppressShowOverApps"
.field static final EXTRA_TV_EXTENDER:Ljava/lang/String; = "android.tv.EXTENSIONS"
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.end field
.field private static final FLAG_AVAILABLE_ON_TV:I = 0x1
.field private static final TAG:Ljava/lang/String; = "TvExtender"
# instance fields
.field private mChannelId:Ljava/lang/String;
.field private mContentIntent:Landroid/app/PendingIntent;
.field private mDeleteIntent:Landroid/app/PendingIntent;
.field private mFlags:I
.field private mSuppressShowOverApps:Z
# direct methods
.method public constructor <init>()V
.locals 1
.line 8199
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x1
iput v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mFlags:I
return-void
.end method
.method public constructor <init>(Landroid/app/Notification;)V
.locals 1
.param p1 # Landroid/app/Notification;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 8208
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 8216
iget-object p1, p1, Landroid/app/Notification;->extras:Landroid/os/Bundle;
if-nez p1, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
const-string v0, "android.tv.EXTENSIONS"
.line 8217
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p1
:goto_0
if-eqz p1, :cond_1
const-string v0, "flags"
.line 8219
invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
move-result v0
iput v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mFlags:I
const-string v0, "channel_id"
.line 8220
invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mChannelId:Ljava/lang/String;
const-string v0, "suppressShowOverApps"
.line 8221
invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->getBoolean(Ljava/lang/String;)Z
move-result v0
iput-boolean v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mSuppressShowOverApps:Z
const-string v0, "content_intent"
.line 8222
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Landroid/app/PendingIntent;
iput-object v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mContentIntent:Landroid/app/PendingIntent;
const-string v0, "delete_intent"
.line 8223
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object p1
check-cast p1, Landroid/app/PendingIntent;
iput-object p1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mDeleteIntent:Landroid/app/PendingIntent;
:cond_1
return-void
.end method
# virtual methods
.method public extend(Landroidx/core/app/NotificationCompat$Builder;)Landroidx/core/app/NotificationCompat$Builder;
.locals 3
.param p1 # Landroidx/core/app/NotificationCompat$Builder;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 8243
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
const-string v1, "flags"
iget v2, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mFlags:I
.line 8245
invoke-virtual {v0, v1, v2}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V
const-string v1, "channel_id"
iget-object v2, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mChannelId:Ljava/lang/String;
.line 8246
invoke-virtual {v0, v1, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
const-string v1, "suppressShowOverApps"
iget-boolean v2, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mSuppressShowOverApps:Z
.line 8247
invoke-virtual {v0, v1, v2}, Landroid/os/BaseBundle;->putBoolean(Ljava/lang/String;Z)V
iget-object v1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mContentIntent:Landroid/app/PendingIntent;
if-eqz v1, :cond_0
const-string v2, "content_intent"
.line 8249
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
:cond_0
iget-object v1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mDeleteIntent:Landroid/app/PendingIntent;
if-eqz v1, :cond_1
const-string v2, "delete_intent"
.line 8253
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
.line 8257
:cond_1
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Builder;->getExtras()Landroid/os/Bundle;
move-result-object v1
const-string v2, "android.tv.EXTENSIONS"
invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
return-object p1
.end method
.method public getChannelId()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mChannelId:Ljava/lang/String;
return-object v0
.end method
.method public getContentIntent()Landroid/app/PendingIntent;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mContentIntent:Landroid/app/PendingIntent;
return-object v0
.end method
.method public getDeleteIntent()Landroid/app/PendingIntent;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mDeleteIntent:Landroid/app/PendingIntent;
return-object v0
.end method
.method public isAvailableOnTv()Z
.locals 2
iget v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mFlags:I
const/4 v1, 0x1
and-int/2addr v0, v1
if-eqz v0, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public isSuppressShowOverApps()Z
.locals 1
iget-boolean v0, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mSuppressShowOverApps:Z
return v0
.end method
.method public setChannelId(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$TvExtender;
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mChannelId:Ljava/lang/String;
return-object p0
.end method
.method public setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$TvExtender;
.locals 0
.param p1 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mContentIntent:Landroid/app/PendingIntent;
return-object p0
.end method
.method public setDeleteIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$TvExtender;
.locals 0
.param p1 # Landroid/app/PendingIntent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mDeleteIntent:Landroid/app/PendingIntent;
return-object p0
.end method
.method public setSuppressShowOverApps(Z)Landroidx/core/app/NotificationCompat$TvExtender;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-boolean p1, p0, Landroidx/core/app/NotificationCompat$TvExtender;->mSuppressShowOverApps:Z
return-object p0
.end method