.class public Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/firemint/realracing/NotificationChannelHelper; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "NotificationChannelContainer" .end annotation # instance fields .field private m_id:Ljava/lang/String; .field private m_importance:I .field private m_localisedName:Ljava/lang/String; .field final synthetic this$0:Lcom/firemint/realracing/NotificationChannelHelper; # direct methods .method private constructor (Lcom/firemint/realracing/NotificationChannelHelper;Ljava/lang/String;Ljava/lang/String;I)V .locals 0 iput-object p1, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->this$0:Lcom/firemint/realracing/NotificationChannelHelper; .line 41 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p2, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_id:Ljava/lang/String; iput-object p3, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_localisedName:Ljava/lang/String; iput p4, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_importance:I return-void .end method .method public synthetic constructor (Lcom/firemint/realracing/NotificationChannelHelper;Ljava/lang/String;Ljava/lang/String;ILcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer-IA;)V .locals 0 .line 0 invoke-direct {p0, p1, p2, p3, p4}, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->(Lcom/firemint/realracing/NotificationChannelHelper;Ljava/lang/String;Ljava/lang/String;I)V return-void .end method # virtual methods .method public CreateNotificationChannel(Landroid/app/NotificationManager;Landroid/content/Context;)V .locals 4 .line 49 new-instance v0, Landroid/app/NotificationChannel; iget-object v1, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_id:Ljava/lang/String; iget-object v2, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_localisedName:Ljava/lang/String; iget v3, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_importance:I invoke-direct {v0, v1, v2, v3}, Landroid/app/NotificationChannel;->(Ljava/lang/String;Ljava/lang/CharSequence;I)V iget v1, p0, Lcom/firemint/realracing/NotificationChannelHelper$NotificationChannelContainer;->m_importance:I const/4 v2, 0x2 if-le v1, v2, :cond_0 const/4 v1, 0x1 goto :goto_0 :cond_0 const/4 v1, 0x0 .line 59 :goto_0 invoke-virtual {v0, v1}, Landroid/app/NotificationChannel;->setShowBadge(Z)V .line 60 invoke-virtual {v0, v1}, Landroid/app/NotificationChannel;->enableLights(Z)V .line 61 invoke-virtual {v0, v1}, Landroid/app/NotificationChannel;->enableVibration(Z)V .line 62 invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v1 sget v2, Lcom/firemint/realracing/R$color;->NotificationColor:I invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I move-result v1 invoke-virtual {v0, v1}, Landroid/app/NotificationChannel;->setLightColor(I)V .line 67 invoke-static {p2}, Lcom/firemint/realracing/DelayedNotificationService;->GetNotificationSoundUri(Landroid/content/Context;)Landroid/net/Uri; move-result-object p2 new-instance v1, Landroid/media/AudioAttributes$Builder; invoke-direct {v1}, Landroid/media/AudioAttributes$Builder;->()V const/4 v2, 0x5 .line 69 invoke-virtual {v1, v2}, Landroid/media/AudioAttributes$Builder;->setUsage(I)Landroid/media/AudioAttributes$Builder; move-result-object v1 const/4 v2, 0x4 .line 70 invoke-virtual {v1, v2}, Landroid/media/AudioAttributes$Builder;->setContentType(I)Landroid/media/AudioAttributes$Builder; move-result-object v1 .line 71 invoke-virtual {v1}, Landroid/media/AudioAttributes$Builder;->build()Landroid/media/AudioAttributes; move-result-object v1 .line 67 invoke-virtual {v0, p2, v1}, Landroid/app/NotificationChannel;->setSound(Landroid/net/Uri;Landroid/media/AudioAttributes;)V .line 73 invoke-virtual {p1, v0}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V return-void .end method