Offset 56, 15 lines modifiedOffset 56, 15 lines modified
  
56 ····.line·5156 ····.line·51
57 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V57 ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V
  
58 ····.line·6258 ····.line·62
59 ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicInteger;59 ····new-instance·v0,·Ljava/util/concurrent/atomic/AtomicInteger;
  
60 ····const/high16·v1,·0x1000060 ····const·v1,·0xffff
  
61 ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V61 ····invoke-direct·{v0,·v1},·Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
  
62 ····iput-object·v0,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mNextRc:Ljava/util/concurrent/atomic/AtomicInteger;62 ····iput-object·v0,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mNextRc:Ljava/util/concurrent/atomic/AtomicInteger;
  
63 ····.line·6363 ····.line·63
64 ····new-instance·v0,·Ljava/util/HashMap;64 ····new-instance·v0,·Ljava/util/HashMap;
Offset 449, 14 lines modifiedOffset 449, 126 lines modified
449 ····new-instance·p3,·Landroidx/activity/result/ActivityResultRegistry$4;449 ····new-instance·p3,·Landroidx/activity/result/ActivityResultRegistry$4;
  
450 ····invoke-direct·{p3,·p0,·v0,·p2,·p1},·Landroidx/activity/result/ActivityResultRegistry$4;-><init>(Landroidx/activity/result/ActivityResultRegistry;ILandroidx/activity/result/contract/ActivityResultContract;Ljava/lang/String;)V450 ····invoke-direct·{p3,·p0,·v0,·p2,·p1},·Landroidx/activity/result/ActivityResultRegistry$4;-><init>(Landroidx/activity/result/ActivityResultRegistry;ILandroidx/activity/result/contract/ActivityResultContract;Ljava/lang/String;)V
  
451 ····return-object·p3451 ····return-object·p3
452 .end·method452 .end·method
  
 453 .method·public·final·register(Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;Landroidx/activity/result/contract/ActivityResultContract;Landroidx/activity/result/ActivityResultCallback;)Landroidx/activity/result/ActivityResultLauncher;
 454 ····.locals·4
 455 ····.annotation·system·Ldalvik/annotation/Signature;
 456 ········value·=·{
 457 ············"<I:",
 458 ············"Ljava/lang/Object;",
 459 ············"O:",
 460 ············"Ljava/lang/Object;",
 461 ············">(",
 462 ············"Ljava/lang/String;",
 463 ············"Landroidx/lifecycle/LifecycleOwner;",
 464 ············"Landroidx/activity/result/contract/ActivityResultContract<",
 465 ············"TI;TO;>;",
 466 ············"Landroidx/activity/result/ActivityResultCallback<",
 467 ············"TO;>;)",
 468 ············"Landroidx/activity/result/ActivityResultLauncher<",
 469 ············"TI;>;"
 470 ········}
 471 ····.end·annotation
  
 472 ····.line·106
 473 ····invoke-direct·{p0,·p1},·Landroidx/activity/result/ActivityResultRegistry;->registerKey(Ljava/lang/String;)I
  
 474 ····move-result·v0
  
 475 ····.line·107
 476 ····iget-object·v1,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mKeyToCallback:Ljava/util/Map;
  
 477 ····new-instance·v2,·Landroidx/activity/result/ActivityResultRegistry$CallbackAndContract;
  
 478 ····invoke-direct·{v2,·p4,·p3},·Landroidx/activity/result/ActivityResultRegistry$CallbackAndContract;-><init>(Landroidx/activity/result/ActivityResultCallback;Landroidx/activity/result/contract/ActivityResultContract;)V
  
 479 ····invoke-interface·{v1,·p1,·v2},·Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
  
 480 ····.line·109
 481 ····invoke-interface·{p2},·Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
  
 482 ····move-result-object·p2
  
 483 ····.line·111
 484 ····iget-object·v1,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mPendingResults:Landroid/os/Bundle;
  
 485 ····invoke-virtual·{v1,·p1},·Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
  
 486 ····move-result-object·v1
  
 487 ····check-cast·v1,·Landroidx/activity/result/ActivityResult;
  
 488 ····if-eqz·v1,·:cond_1
  
 489 ····.line·113
 490 ····iget-object·v2,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mPendingResults:Landroid/os/Bundle;
  
 491 ····invoke-virtual·{v2,·p1},·Landroid/os/Bundle;->remove(Ljava/lang/String;)V
  
 492 ····.line·114
 493 ····invoke-virtual·{p2},·Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
  
 494 ····move-result-object·v2
  
 495 ····sget-object·v3,·Landroidx/lifecycle/Lifecycle$State;->STARTED:Landroidx/lifecycle/Lifecycle$State;
  
 496 ····invoke-virtual·{v2,·v3},·Landroidx/lifecycle/Lifecycle$State;->isAtLeast(Landroidx/lifecycle/Lifecycle$State;)Z
  
 497 ····move-result·v2
  
 498 ····if-eqz·v2,·:cond_0
  
 499 ····.line·116
 500 ····invoke-virtual·{v1},·Landroidx/activity/result/ActivityResult;->getResultCode()I
  
 501 ····move-result·v2
  
 502 ····.line·117
 503 ····invoke-virtual·{v1},·Landroidx/activity/result/ActivityResult;->getData()Landroid/content/Intent;
  
 504 ····move-result-object·v1
  
 505 ····.line·115
 506 ····invoke-virtual·{p3,·v2,·v1},·Landroidx/activity/result/contract/ActivityResultContract;->parseResult(ILandroid/content/Intent;)Ljava/lang/Object;
  
 507 ····move-result-object·v1
  
 508 ····invoke-interface·{p4,·v1},·Landroidx/activity/result/ActivityResultCallback;->onActivityResult(Ljava/lang/Object;)V
  
 509 ····goto·:goto_0
  
 510 ····.line·119
 511 ····:cond_0
 512 ····new-instance·v2,·Landroidx/activity/result/ActivityResultRegistry$1;
  
 513 ····invoke-direct·{v2,·p0,·p4,·p3,·v1},·Landroidx/activity/result/ActivityResultRegistry$1;-><init>(Landroidx/activity/result/ActivityResultRegistry;Landroidx/activity/result/ActivityResultCallback;Landroidx/activity/result/contract/ActivityResultContract;Landroidx/activity/result/ActivityResult;)V
  
 514 ····invoke-virtual·{p2,·v2},·Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V
  
 515 ····.line·134
 516 ····:cond_1
 517 ····:goto_0
 518 ····new-instance·p4,·Landroidx/activity/result/ActivityResultRegistry$2;
  
 519 ····invoke-direct·{p4,·p0,·p1},·Landroidx/activity/result/ActivityResultRegistry$2;-><init>(Landroidx/activity/result/ActivityResultRegistry;Ljava/lang/String;)V
  
 520 ····invoke-virtual·{p2,·p4},·Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V
  
 521 ····.line·144
 522 ····new-instance·p2,·Landroidx/activity/result/ActivityResultRegistry$3;
  
 523 ····invoke-direct·{p2,·p0,·v0,·p3,·p1},·Landroidx/activity/result/ActivityResultRegistry$3;-><init>(Landroidx/activity/result/ActivityResultRegistry;ILandroidx/activity/result/contract/ActivityResultContract;Ljava/lang/String;)V
  
 524 ····return-object·p2
 525 .end·method
  
453 .method·final·unregister(Ljava/lang/String;)V526 .method·final·unregister(Ljava/lang/String;)V
454 ····.locals·2527 ····.locals·2
  
455 ····.line·222528 ····.line·222
456 ····iget-object·v0,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mKeyToRc:Ljava/util/Map;529 ····iget-object·v0,·p0,·Landroidx/activity/result/ActivityResultRegistry;->mKeyToRc:Ljava/util/Map;
  
457 ····invoke-interface·{v0,·p1},·Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;530 ····invoke-interface·{v0,·p1},·Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;