120 lines
3.2 KiB
Smali
120 lines
3.2 KiB
Smali
.class public final Landroidx/activity/result/contract/ActivityResultContracts$PickContact;
|
|
.super Landroidx/activity/result/contract/ActivityResultContract;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/activity/result/contract/ActivityResultContracts;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "PickContact"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/activity/result/contract/ActivityResultContract<",
|
|
"Ljava/lang/Void;",
|
|
"Landroid/net/Uri;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nActivityResultContracts.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ActivityResultContracts.kt\nandroidx/activity/result/contract/ActivityResultContracts$PickContact\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,959:1\n1#2:960\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 372
|
|
invoke-direct {p0}, Landroidx/activity/result/contract/ActivityResultContract;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic createIntent(Landroid/content/Context;Ljava/lang/Object;)Landroid/content/Intent;
|
|
.locals 0
|
|
|
|
.line 372
|
|
check-cast p2, Ljava/lang/Void;
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/activity/result/contract/ActivityResultContracts$PickContact;->createIntent(Landroid/content/Context;Ljava/lang/Void;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public createIntent(Landroid/content/Context;Ljava/lang/Void;)Landroid/content/Intent;
|
|
.locals 0
|
|
|
|
const-string p2, "context"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 374
|
|
new-instance p1, Landroid/content/Intent;
|
|
|
|
const-string p2, "android.intent.action.PICK"
|
|
|
|
invoke-direct {p1, p2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string p2, "vnd.android.cursor.dir/contact"
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "Intent(Intent.ACTION_PIC\u2026ct.Contacts.CONTENT_TYPE)"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public parseResult(ILandroid/content/Intent;)Landroid/net/Uri;
|
|
.locals 2
|
|
|
|
const/4 v0, -0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object p2, v1
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 378
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public bridge synthetic parseResult(ILandroid/content/Intent;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 372
|
|
invoke-virtual {p0, p1, p2}, Landroidx/activity/result/contract/ActivityResultContracts$PickContact;->parseResult(ILandroid/content/Intent;)Landroid/net/Uri;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|