.class Landroidx/fragment/app/Fragment$10; .super Landroidx/activity/result/ActivityResultLauncher; .source "Fragment.java" # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Landroidx/fragment/app/Fragment;->prepareCallInternal(Landroidx/activity/result/contract/ActivityResultContract;Landroidx/arch/core/util/Function;Landroidx/activity/result/ActivityResultCallback;)Landroidx/activity/result/ActivityResultLauncher; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Landroidx/activity/result/ActivityResultLauncher<", "TI;>;" } .end annotation # instance fields .field final synthetic this$0:Landroidx/fragment/app/Fragment; .field final synthetic val$contract:Landroidx/activity/result/contract/ActivityResultContract; .field final synthetic val$ref:Ljava/util/concurrent/atomic/AtomicReference; # direct methods .method constructor (Landroidx/fragment/app/Fragment;Ljava/util/concurrent/atomic/AtomicReference;Landroidx/activity/result/contract/ActivityResultContract;)V .locals 0 iput-object p1, p0, Landroidx/fragment/app/Fragment$10;->this$0:Landroidx/fragment/app/Fragment; iput-object p2, p0, Landroidx/fragment/app/Fragment$10;->val$ref:Ljava/util/concurrent/atomic/AtomicReference; iput-object p3, p0, Landroidx/fragment/app/Fragment$10;->val$contract:Landroidx/activity/result/contract/ActivityResultContract; .line 3624 invoke-direct {p0}, Landroidx/activity/result/ActivityResultLauncher;->()V return-void .end method # virtual methods .method public getContract()Landroidx/activity/result/contract/ActivityResultContract; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Landroidx/activity/result/contract/ActivityResultContract<", "TI;*>;" } .end annotation iget-object p0, p0, Landroidx/fragment/app/Fragment$10;->val$contract:Landroidx/activity/result/contract/ActivityResultContract; return-object p0 .end method .method public launch(Ljava/lang/Object;Landroidx/core/app/ActivityOptionsCompat;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TI;", "Landroidx/core/app/ActivityOptionsCompat;", ")V" } .end annotation iget-object p0, p0, Landroidx/fragment/app/Fragment$10;->val$ref:Ljava/util/concurrent/atomic/AtomicReference; .line 3627 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object; move-result-object p0 check-cast p0, Landroidx/activity/result/ActivityResultLauncher; if-eqz p0, :cond_0 .line 3632 invoke-virtual {p0, p1, p2}, Landroidx/activity/result/ActivityResultLauncher;->launch(Ljava/lang/Object;Landroidx/core/app/ActivityOptionsCompat;)V return-void .line 3629 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "Operation cannot be started before fragment is in created state" invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p0 .end method .method public unregister()V .locals 1 iget-object p0, p0, Landroidx/fragment/app/Fragment$10;->val$ref:Ljava/util/concurrent/atomic/AtomicReference; const/4 v0, 0x0 .line 3637 invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 check-cast p0, Landroidx/activity/result/ActivityResultLauncher; if-eqz p0, :cond_0 .line 3639 invoke-virtual {p0}, Landroidx/activity/result/ActivityResultLauncher;->unregister()V :cond_0 return-void .end method