1176 lines
38 KiB
Smali
1176 lines
38 KiB
Smali
.class public Landroidx/core/app/NotificationCompatBuilder;
|
|
.super Ljava/lang/Object;
|
|
.source "NotificationCompatBuilder.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/core/app/NotificationBuilderWithBuilderAccessor;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final mActionExtrasList:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/os/Bundle;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public mBigContentView:Landroid/widget/RemoteViews;
|
|
|
|
.field public final mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
.field public final mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.field public mContentView:Landroid/widget/RemoteViews;
|
|
|
|
.field public final mExtras:Landroid/os/Bundle;
|
|
|
|
.field public mGroupAlertBehavior:I
|
|
|
|
.field public mHeadsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/core/app/NotificationCompat$Builder;)V
|
|
.locals 11
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mActionExtrasList:Ljava/util/List;
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mExtras:Landroid/os/Bundle;
|
|
|
|
iput-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
new-instance v0, Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mChannelId:Ljava/lang/String;
|
|
|
|
invoke-direct {v0, v2, v3}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
iput-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v2}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
:goto_0
|
|
iget-object v0, p1, Landroidx/core/app/NotificationCompat$Builder;->mNotification:Landroid/app/Notification;
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-wide v3, v0, Landroid/app/Notification;->when:J
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/app/Notification$Builder;->setWhen(J)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroid/app/Notification;->icon:I
|
|
|
|
iget v4, v0, Landroid/app/Notification;->iconLevel:I
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/app/Notification$Builder;->setSmallIcon(II)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setContent(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence;
|
|
|
|
iget-object v4, p1, Landroidx/core/app/NotificationCompat$Builder;->mTickerView:Landroid/widget/RemoteViews;
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/app/Notification$Builder;->setTicker(Ljava/lang/CharSequence;Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Landroid/app/Notification;->vibrate:[J
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setVibrate([J)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroid/app/Notification;->ledARGB:I
|
|
|
|
iget v4, v0, Landroid/app/Notification;->ledOnMS:I
|
|
|
|
iget v5, v0, Landroid/app/Notification;->ledOffMS:I
|
|
|
|
invoke-virtual {v2, v3, v4, v5}, Landroid/app/Notification$Builder;->setLights(III)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroid/app/Notification;->flags:I
|
|
|
|
const/4 v4, 0x2
|
|
|
|
and-int/2addr v3, v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setOngoing(Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit8 v3, v3, 0x8
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v3, 0x0
|
|
|
|
:goto_2
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setOnlyAlertOnce(Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit8 v3, v3, 0x10
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v3, 0x0
|
|
|
|
:goto_3
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setAutoCancel(Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, v0, Landroid/app/Notification;->defaults:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setDefaults(I)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentTitle:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentText:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setContentText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentInfo:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setContentInfo(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentIntent:Landroid/app/PendingIntent;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Landroid/app/Notification;->deleteIntent:Landroid/app/PendingIntent;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setDeleteIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mFullScreenIntent:Landroid/app/PendingIntent;
|
|
|
|
iget v7, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 v7, v7, 0x80
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
const/4 v7, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
const/4 v7, 0x0
|
|
|
|
:goto_4
|
|
invoke-virtual {v2, v3, v7}, Landroid/app/Notification$Builder;->setFullScreenIntent(Landroid/app/PendingIntent;Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mLargeIcon:Landroid/graphics/Bitmap;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setLargeIcon(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mNumber:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setNumber(I)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mProgressMax:I
|
|
|
|
iget v7, p1, Landroidx/core/app/NotificationCompat$Builder;->mProgress:I
|
|
|
|
iget-boolean v8, p1, Landroidx/core/app/NotificationCompat$Builder;->mProgressIndeterminate:Z
|
|
|
|
invoke-virtual {v2, v3, v7, v8}, Landroid/app/Notification$Builder;->setProgress(IIZ)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mSubText:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setSubText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-boolean v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mUseChronometer:Z
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setUsesChronometer(Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mPriority:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setPriority(I)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mActions:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_5
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
invoke-direct {p0, v3}, Landroidx/core/app/NotificationCompatBuilder;->addAction(Landroidx/core/app/NotificationCompat$Action;)V
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mExtras:Landroid/os/Bundle;
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
iget-object v3, p0, Landroidx/core/app/NotificationCompatBuilder;->mExtras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/os/Bundle;->putAll(Landroid/os/Bundle;)V
|
|
|
|
:cond_6
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentView:Landroid/widget/RemoteViews;
|
|
|
|
iput-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mContentView:Landroid/widget/RemoteViews;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mBigContentView:Landroid/widget/RemoteViews;
|
|
|
|
iput-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBigContentView:Landroid/widget/RemoteViews;
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-boolean v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mShowWhen:Z
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setShowWhen(Z)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-boolean v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mLocalOnly:Z
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setLocalOnly(Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mGroupKey:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setGroup(Ljava/lang/String;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-boolean v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mGroupSummary:Z
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setGroupSummary(Z)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mSortKey:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setSortKey(Ljava/lang/String;)Landroid/app/Notification$Builder;
|
|
|
|
iget v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mGroupAlertBehavior:I
|
|
|
|
iput v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mCategory:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setCategory(Ljava/lang/String;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mColor:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setColor(I)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mVisibility:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setVisibility(I)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mPublicVersion:Landroid/app/Notification;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setPublicVersion(Landroid/app/Notification;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Landroid/app/Notification;->sound:Landroid/net/Uri;
|
|
|
|
iget-object v7, v0, Landroid/app/Notification;->audioAttributes:Landroid/media/AudioAttributes;
|
|
|
|
invoke-virtual {v2, v3, v7}, Landroid/app/Notification$Builder;->setSound(Landroid/net/Uri;Landroid/media/AudioAttributes;)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mPeople:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_6
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_7
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
iget-object v7, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v7, v3}, Landroid/app/Notification$Builder;->addPerson(Ljava/lang/String;)Landroid/app/Notification$Builder;
|
|
|
|
goto :goto_6
|
|
|
|
:cond_7
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mHeadsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
iput-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mHeadsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mInvisibleActions:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_a
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Builder;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "android.car.EXTENSIONS"
|
|
|
|
invoke-virtual {v2, v3}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_8
|
|
|
|
new-instance v2, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v2}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:cond_8
|
|
new-instance v7, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v7}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_7
|
|
iget-object v9, p1, Landroidx/core/app/NotificationCompat$Builder;->mInvisibleActions:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v9}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v9
|
|
|
|
if-ge v8, v9, :cond_9
|
|
|
|
invoke-static {v8}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
iget-object v10, p1, Landroidx/core/app/NotificationCompat$Builder;->mInvisibleActions:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v10, v8}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
invoke-static {v10}, Landroidx/core/app/NotificationCompatJellybean;->getBundleForAction(Landroidx/core/app/NotificationCompat$Action;)Landroid/os/Bundle;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v7, v9, v10}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_9
|
|
const-string v8, "invisible_actions"
|
|
|
|
invoke-virtual {v2, v8, v7}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Builder;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7, v3, v2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
iget-object v7, p0, Landroidx/core/app/NotificationCompatBuilder;->mExtras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v7, v3, v2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
|
|
|
|
:cond_a
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x18
|
|
|
|
if-lt v2, v3, :cond_d
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mExtras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setExtras(Landroid/os/Bundle;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Builder;->mRemoteInputHistory:[Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setRemoteInputHistory([Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v2, :cond_b
|
|
|
|
iget-object v3, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/app/Notification$Builder;->setCustomContentView(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;
|
|
|
|
:cond_b
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mBigContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v2, :cond_c
|
|
|
|
iget-object v3, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/app/Notification$Builder;->setCustomBigContentView(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;
|
|
|
|
:cond_c
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mHeadsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v2, :cond_d
|
|
|
|
iget-object v3, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v3, v2}, Landroid/app/Notification$Builder;->setCustomHeadsUpContentView(Landroid/widget/RemoteViews;)Landroid/app/Notification$Builder;
|
|
|
|
:cond_d
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-lt v2, v1, :cond_f
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget v7, p1, Landroidx/core/app/NotificationCompat$Builder;->mBadgeIcon:I
|
|
|
|
invoke-virtual {v2, v7}, Landroid/app/Notification$Builder;->setBadgeIconType(I)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v7, p1, Landroidx/core/app/NotificationCompat$Builder;->mShortcutId:Ljava/lang/String;
|
|
|
|
invoke-virtual {v2, v7}, Landroid/app/Notification$Builder;->setShortcutId(Ljava/lang/String;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-wide v7, p1, Landroidx/core/app/NotificationCompat$Builder;->mTimeout:J
|
|
|
|
invoke-virtual {v2, v7, v8}, Landroid/app/Notification$Builder;->setTimeoutAfter(J)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
iget v7, p1, Landroidx/core/app/NotificationCompat$Builder;->mGroupAlertBehavior:I
|
|
|
|
invoke-virtual {v2, v7}, Landroid/app/Notification$Builder;->setGroupAlertBehavior(I)Landroid/app/Notification$Builder;
|
|
|
|
iget-boolean v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mColorizedSet:Z
|
|
|
|
if-eqz v2, :cond_e
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-boolean v7, p1, Landroidx/core/app/NotificationCompat$Builder;->mColorized:Z
|
|
|
|
invoke-virtual {v2, v7}, Landroid/app/Notification$Builder;->setColorized(Z)Landroid/app/Notification$Builder;
|
|
|
|
:cond_e
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Builder;->mChannelId:Ljava/lang/String;
|
|
|
|
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_f
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setSound(Landroid/net/Uri;)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v6}, Landroid/app/Notification$Builder;->setDefaults(I)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v6, v6, v6}, Landroid/app/Notification$Builder;->setLights(III)Landroid/app/Notification$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v3}, Landroid/app/Notification$Builder;->setVibrate([J)Landroid/app/Notification$Builder;
|
|
|
|
:cond_f
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v6, 0x1d
|
|
|
|
if-lt v2, v6, :cond_10
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-boolean v6, p1, Landroidx/core/app/NotificationCompat$Builder;->mAllowSystemGeneratedContextualActions:Z
|
|
|
|
invoke-virtual {v2, v6}, Landroid/app/Notification$Builder;->setAllowSystemGeneratedContextualActions(Z)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-object v6, p1, Landroidx/core/app/NotificationCompat$Builder;->mBubbleMetadata:Landroidx/core/app/NotificationCompat$BubbleMetadata;
|
|
|
|
invoke-static {v6}, Landroidx/core/app/NotificationCompat$BubbleMetadata;->toPlatform(Landroidx/core/app/NotificationCompat$BubbleMetadata;)Landroid/app/Notification$BubbleMetadata;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v2, v6}, Landroid/app/Notification$Builder;->setBubbleMetadata(Landroid/app/Notification$BubbleMetadata;)Landroid/app/Notification$Builder;
|
|
|
|
:cond_10
|
|
iget-boolean p1, p1, Landroidx/core/app/NotificationCompat$Builder;->mSilent:Z
|
|
|
|
if-eqz p1, :cond_13
|
|
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-boolean p1, p1, Landroidx/core/app/NotificationCompat$Builder;->mGroupSummary:Z
|
|
|
|
if-eqz p1, :cond_11
|
|
|
|
iput v4, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
goto :goto_8
|
|
|
|
:cond_11
|
|
iput v5, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
:goto_8
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {p1, v3}, Landroid/app/Notification$Builder;->setVibrate([J)Landroid/app/Notification$Builder;
|
|
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {p1, v3}, Landroid/app/Notification$Builder;->setSound(Landroid/net/Uri;)Landroid/app/Notification$Builder;
|
|
|
|
iget p1, v0, Landroid/app/Notification;->defaults:I
|
|
|
|
and-int/lit8 p1, p1, -0x2
|
|
|
|
iput p1, v0, Landroid/app/Notification;->defaults:I
|
|
|
|
and-int/lit8 p1, p1, -0x3
|
|
|
|
iput p1, v0, Landroid/app/Notification;->defaults:I
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/app/Notification$Builder;->setDefaults(I)Landroid/app/Notification$Builder;
|
|
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt p1, v1, :cond_13
|
|
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-object p1, p1, Landroidx/core/app/NotificationCompat$Builder;->mGroupKey:Ljava/lang/String;
|
|
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_12
|
|
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
const-string v0, "silent"
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Notification$Builder;->setGroup(Ljava/lang/String;)Landroid/app/Notification$Builder;
|
|
|
|
:cond_12
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Notification$Builder;->setGroupAlertBehavior(I)Landroid/app/Notification$Builder;
|
|
|
|
:cond_13
|
|
return-void
|
|
.end method
|
|
|
|
.method private addAction(Landroidx/core/app/NotificationCompat$Action;)V
|
|
.locals 5
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getIconCompat()Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v2, 0x17
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-lt v1, v2, :cond_1
|
|
|
|
new-instance v1, Landroid/app/Notification$Action$Builder;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/core/graphics/drawable/IconCompat;->toIcon()Landroid/graphics/drawable/Icon;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getActionIntent()Landroid/app/PendingIntent;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-direct {v1, v0, v2, v4}, Landroid/app/Notification$Action$Builder;-><init>(Landroid/graphics/drawable/Icon;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
new-instance v1, Landroid/app/Notification$Action$Builder;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {v0}, Landroidx/core/graphics/drawable/IconCompat;->getResId()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getTitle()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getActionIntent()Landroid/app/PendingIntent;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-direct {v1, v0, v2, v4}, Landroid/app/Notification$Action$Builder;-><init>(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)V
|
|
|
|
:goto_2
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getRemoteInputs()[Landroidx/core/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroidx/core/app/RemoteInput;->fromCompat([Landroidx/core/app/RemoteInput;)[Landroid/app/RemoteInput;
|
|
|
|
move-result-object v0
|
|
|
|
array-length v2, v0
|
|
|
|
:goto_3
|
|
if-ge v3, v2, :cond_3
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
invoke-virtual {v1, v4}, Landroid/app/Notification$Action$Builder;->addRemoteInput(Landroid/app/RemoteInput;)Landroid/app/Notification$Action$Builder;
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v0, v2}, Landroid/os/Bundle;-><init>(Landroid/os/Bundle;)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
:goto_4
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "android.support.allowGeneratedReplies"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x18
|
|
|
|
if-lt v2, v3, :cond_5
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getAllowGeneratedReplies()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/app/Notification$Action$Builder;->setAllowGeneratedReplies(Z)Landroid/app/Notification$Action$Builder;
|
|
|
|
:cond_5
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getSemanticAction()I
|
|
|
|
move-result v2
|
|
|
|
const-string v3, "android.support.action.semanticAction"
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x1c
|
|
|
|
if-lt v2, v3, :cond_6
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getSemanticAction()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/app/Notification$Action$Builder;->setSemanticAction(I)Landroid/app/Notification$Action$Builder;
|
|
|
|
:cond_6
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x1d
|
|
|
|
if-lt v2, v3, :cond_7
|
|
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->isContextual()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Landroid/app/Notification$Action$Builder;->setContextual(Z)Landroid/app/Notification$Action$Builder;
|
|
|
|
:cond_7
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getShowsUserInterface()Z
|
|
|
|
move-result p1
|
|
|
|
const-string v2, "android.support.action.showsUserInterface"
|
|
|
|
invoke-virtual {v0, v2, p1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
invoke-virtual {v1, v0}, Landroid/app/Notification$Action$Builder;->addExtras(Landroid/os/Bundle;)Landroid/app/Notification$Action$Builder;
|
|
|
|
iget-object p1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v1}, Landroid/app/Notification$Action$Builder;->build()Landroid/app/Notification$Action;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Notification$Builder;->addAction(Landroid/app/Notification$Action;)Landroid/app/Notification$Builder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private removeSoundAndVibration(Landroid/app/Notification;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p1, Landroid/app/Notification;->sound:Landroid/net/Uri;
|
|
|
|
iput-object v0, p1, Landroid/app/Notification;->vibrate:[J
|
|
|
|
iget v0, p1, Landroid/app/Notification;->defaults:I
|
|
|
|
and-int/lit8 v0, v0, -0x2
|
|
|
|
iput v0, p1, Landroid/app/Notification;->defaults:I
|
|
|
|
and-int/lit8 v0, v0, -0x3
|
|
|
|
iput v0, p1, Landroid/app/Notification;->defaults:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public build()Landroid/app/Notification;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-object v0, v0, Landroidx/core/app/NotificationCompat$Builder;->mStyle:Landroidx/core/app/NotificationCompat$Style;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/core/app/NotificationCompat$Style;->apply(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)V
|
|
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/core/app/NotificationCompat$Style;->makeContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/core/app/NotificationCompatBuilder;->buildInternal()Landroid/app/Notification;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iput-object v1, v2, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iput-object v1, v2, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
|
|
|
|
:cond_3
|
|
:goto_1
|
|
if-eqz v0, :cond_4
|
|
|
|
invoke-virtual {v0, p0}, Landroidx/core/app/NotificationCompat$Style;->makeBigContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iput-object v1, v2, Landroid/app/Notification;->bigContentView:Landroid/widget/RemoteViews;
|
|
|
|
:cond_4
|
|
if-eqz v0, :cond_5
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilderCompat:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mStyle:Landroidx/core/app/NotificationCompat$Style;
|
|
|
|
invoke-virtual {v1, p0}, Landroidx/core/app/NotificationCompat$Style;->makeHeadsUpContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iput-object v1, v2, Landroid/app/Notification;->headsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
:cond_5
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-static {v2}, Landroidx/core/app/NotificationCompat;->getExtras(Landroid/app/Notification;)Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/core/app/NotificationCompat$Style;->addCompatExtras(Landroid/os/Bundle;)V
|
|
|
|
:cond_6
|
|
return-object v2
|
|
.end method
|
|
|
|
.method public buildInternal()Landroid/app/Notification;
|
|
.locals 4
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1a
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Notification$Builder;->build()Landroid/app/Notification;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0x18
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-lt v0, v1, :cond_3
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Notification$Builder;->build()Landroid/app/Notification;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v0}, Landroid/app/Notification;->getGroup()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget v1, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 v1, v1, 0x200
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
invoke-direct {p0, v0}, Landroidx/core/app/NotificationCompatBuilder;->removeSoundAndVibration(Landroid/app/Notification;)V
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Landroid/app/Notification;->getGroup()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget v1, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 v1, v1, 0x200
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
iget v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
if-ne v1, v2, :cond_2
|
|
|
|
invoke-direct {p0, v0}, Landroidx/core/app/NotificationCompatBuilder;->removeSoundAndVibration(Landroid/app/Notification;)V
|
|
|
|
:cond_2
|
|
return-object v0
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mExtras:Landroid/os/Bundle;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setExtras(Landroid/os/Bundle;)Landroid/app/Notification$Builder;
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Notification$Builder;->build()Landroid/app/Notification;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iput-object v1, v0, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
|
|
|
|
:cond_4
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mBigContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
iput-object v1, v0, Landroid/app/Notification;->bigContentView:Landroid/widget/RemoteViews;
|
|
|
|
:cond_5
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mHeadsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iput-object v1, v0, Landroid/app/Notification;->headsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
:cond_6
|
|
iget v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
invoke-virtual {v0}, Landroid/app/Notification;->getGroup()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
iget v1, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 v1, v1, 0x200
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
iget v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
if-ne v1, v3, :cond_7
|
|
|
|
invoke-direct {p0, v0}, Landroidx/core/app/NotificationCompatBuilder;->removeSoundAndVibration(Landroid/app/Notification;)V
|
|
|
|
:cond_7
|
|
invoke-virtual {v0}, Landroid/app/Notification;->getGroup()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
iget v1, v0, Landroid/app/Notification;->flags:I
|
|
|
|
and-int/lit16 v1, v1, 0x200
|
|
|
|
if-nez v1, :cond_8
|
|
|
|
iget v1, p0, Landroidx/core/app/NotificationCompatBuilder;->mGroupAlertBehavior:I
|
|
|
|
if-ne v1, v2, :cond_8
|
|
|
|
invoke-direct {p0, v0}, Landroidx/core/app/NotificationCompatBuilder;->removeSoundAndVibration(Landroid/app/Notification;)V
|
|
|
|
:cond_8
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getBuilder()Landroid/app/Notification$Builder;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/core/app/NotificationCompatBuilder;->mBuilder:Landroid/app/Notification$Builder;
|
|
|
|
return-object v0
|
|
.end method
|