176 lines
5.0 KiB
Smali
176 lines
5.0 KiB
Smali
.class final Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;
|
|
.super Lkotlin/jvm/internal/Lambda;
|
|
.source "QRViewUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/b/Functions;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/qrcode/QRViewUtils;->a(Landroid/app/Activity;Lcom/vk/qrcode/QRParser;Lcom/vk/qrcode/QRTypes10;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/internal/Lambda;",
|
|
"Lkotlin/jvm/b/Functions<",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $context:Landroid/app/Activity;
|
|
|
|
.field final synthetic $event:Lcom/vk/qrcode/QRTypes$a3;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/vk/qrcode/QRTypes$a3;Landroid/app/Activity;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$event:Lcom/vk/qrcode/QRTypes$a3;
|
|
|
|
iput-object p2, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$context:Landroid/app/Activity;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->invoke()V
|
|
|
|
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invoke()V
|
|
.locals 5
|
|
|
|
.line 2
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
const-string v1, "android.intent.action.INSERT"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 3
|
|
sget-object v1, Landroid/provider/CalendarContract$Events;->CONTENT_URI:Landroid/net/Uri;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$event:Lcom/vk/qrcode/QRTypes$a3;
|
|
|
|
invoke-virtual {v1}, Lcom/vk/qrcode/QRTypes$a3;->d()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "title"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 5
|
|
iget-object v1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$event:Lcom/vk/qrcode/QRTypes$a3;
|
|
|
|
invoke-virtual {v1}, Lcom/vk/qrcode/QRTypes$a3;->b()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "eventLocation"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 6
|
|
iget-object v1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$event:Lcom/vk/qrcode/QRTypes$a3;
|
|
|
|
invoke-virtual {v1}, Lcom/vk/qrcode/QRTypes$a3;->c()Ljava/util/Date;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Ljava/util/Date;->getTime()J
|
|
|
|
move-result-wide v3
|
|
|
|
const-string v1, "beginTime"
|
|
|
|
invoke-virtual {v0, v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 7
|
|
iget-object v1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$event:Lcom/vk/qrcode/QRTypes$a3;
|
|
|
|
invoke-virtual {v1}, Lcom/vk/qrcode/QRTypes$a3;->a()Ljava/util/Date;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Ljava/util/Date;->getTime()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-string v3, "endTime"
|
|
|
|
invoke-virtual {v0, v3, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
.line 8
|
|
iget-object v1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$context:Landroid/app/Activity;
|
|
|
|
invoke-virtual {v1}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 9
|
|
iget-object v1, p0, Lcom/vk/qrcode/QRViewUtils$forEvent$saveInCalendarAction$1;->$context:Landroid/app/Activity;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
.line 10
|
|
:cond_0
|
|
sget-object v0, Lcom/vk/qrcode/QRStatsTracker;->b:Lcom/vk/qrcode/QRStatsTracker;
|
|
|
|
sget-object v1, Lcom/vk/qrcode/QRStatsTracker$Action;->ADD_TO_CALENDAR:Lcom/vk/qrcode/QRStatsTracker$Action;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/vk/qrcode/QRStatsTracker;->a(Lcom/vk/qrcode/QRStatsTracker$Action;)V
|
|
|
|
return-void
|
|
|
|
.line 11
|
|
:cond_1
|
|
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->a()V
|
|
|
|
throw v2
|
|
|
|
.line 12
|
|
:cond_2
|
|
invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->a()V
|
|
|
|
throw v2
|
|
.end method
|