VoIPService$18.smali

.class Lim/tpelyyftgw/messenger/voip/VoIPService$18;
.super Ljava/lang/Object;
.source "VoIPService.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/messenger/voip/VoIPService;->onUIForegroundStateChanged(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lim/tpelyyftgw/messenger/voip/VoIPService;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    return-void
.end method

.method constructor <init>(Lim/tpelyyftgw/messenger/voip/VoIPService;)V
    .registers 2
    .param p1, "this$0"    # Lim/tpelyyftgw/messenger/voip/VoIPService;

    .line 1097
    iput-object p1, p0, Lim/tpelyyftgw/messenger/voip/VoIPService$18;->this$0:Lim/tpelyyftgw/messenger/voip/VoIPService;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    .line 1100
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lim/tpelyyftgw/messenger/voip/VoIPService$18;->this$0:Lim/tpelyyftgw/messenger/voip/VoIPService;

    const-class v2, Lim/tpelyyftgw/ui/VoIPActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1101
    .local v0, "intent":Landroid/content/Intent;
    const/high16 v1, 0x30000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1103
    :try_start_e
    iget-object v1, p0, Lim/tpelyyftgw/messenger/voip/VoIPService$18;->this$0:Lim/tpelyyftgw/messenger/voip/VoIPService;

    const/4 v2, 0x0

    invoke-static {v1, v2, v0, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/PendingIntent;->send()V
    :try_end_18
    .catch Landroid/app/PendingIntent$CanceledException; {:try_start_e .. :try_end_18} :catch_19

    .line 1109
    goto :goto_2a

    .line 1104
    :catch_19
    move-exception v1

    .line 1105
    .local v1, "e":Landroid/app/PendingIntent$CanceledException;
    sget-boolean v2, Lim/tpelyyftgw/messenger/BuildVars;->LOGS_ENABLED:Z

    if-eqz v2, :cond_23

    .line 1106
    const-string v2, "error restarting activity"

    invoke-static {v2, v1}, Lim/tpelyyftgw/messenger/FileLog;->e(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 1108
    :cond_23
    iget-object v2, p0, Lim/tpelyyftgw/messenger/voip/VoIPService$18;->this$0:Lim/tpelyyftgw/messenger/voip/VoIPService;

    const/4 v3, 0x4

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lim/tpelyyftgw/messenger/voip/VoIPService;->declineIncomingCall(ILjava/lang/Runnable;)V

    .line 1110
    .end local v1    # "e":Landroid/app/PendingIntent$CanceledException;
    :goto_2a
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x1a

    if-lt v1, v2, :cond_35

    .line 1111
    iget-object v1, p0, Lim/tpelyyftgw/messenger/voip/VoIPService$18;->this$0:Lim/tpelyyftgw/messenger/voip/VoIPService;

    invoke-virtual {v1}, Lim/tpelyyftgw/messenger/voip/VoIPService;->showNotification()V

    .line 1113
    :cond_35
    return-void
.end method