132 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			132 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class final Landroidx/lifecycle/SavedStateHandleController$OnRecreation;
 | |
| .super Ljava/lang/Object;
 | |
| .source "SavedStateHandleController.java"
 | |
| 
 | |
| # interfaces
 | |
| .implements Landroidx/savedstate/SavedStateRegistry$a;
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Landroidx/lifecycle/SavedStateHandleController;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x19
 | |
|     name = "OnRecreation"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public onRecreated(Landroidx/savedstate/b;)V
 | |
|     .locals 5
 | |
|     .param p1    # Landroidx/savedstate/b;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/MethodParameters;
 | |
|         accessFlags = {
 | |
|             0x0
 | |
|         }
 | |
|         names = {
 | |
|             "owner"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     instance-of v0, p1, Landroidx/lifecycle/ViewModelStoreOwner;
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 2
 | |
|     move-object v0, p1
 | |
| 
 | |
|     check-cast v0, Landroidx/lifecycle/ViewModelStoreOwner;
 | |
| 
 | |
|     invoke-interface {v0}, Landroidx/lifecycle/ViewModelStoreOwner;->getViewModelStore()Landroidx/lifecycle/ViewModelStore;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {p1}, Landroidx/savedstate/b;->getSavedStateRegistry()Landroidx/savedstate/SavedStateRegistry;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroidx/lifecycle/ViewModelStore;->keys()Ljava/util/Set;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     :goto_0
 | |
|     invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-eqz v3, :cond_0
 | |
| 
 | |
|     invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     check-cast v3, Ljava/lang/String;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0, v3}, Landroidx/lifecycle/ViewModelStore;->get(Ljava/lang/String;)Landroidx/lifecycle/ViewModel;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     .line 6
 | |
|     invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     invoke-static {v3, v1, v4}, Landroidx/lifecycle/SavedStateHandleController;->attachHandleIfNeeded(Landroidx/lifecycle/ViewModel;Landroidx/savedstate/SavedStateRegistry;Landroidx/lifecycle/Lifecycle;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     invoke-virtual {v0}, Landroidx/lifecycle/ViewModelStore;->keys()Ljava/util/Set;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-interface {p1}, Ljava/util/Set;->isEmpty()Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_1
 | |
| 
 | |
|     .line 8
 | |
|     const-class p1, Landroidx/lifecycle/SavedStateHandleController$OnRecreation;
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroidx/savedstate/SavedStateRegistry;->f(Ljava/lang/Class;)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     new-instance p1, Ljava/lang/IllegalStateException;
 | |
| 
 | |
|     const-string v0, "Internal error: OnRecreation should be registered only on componentsthat implement ViewModelStoreOwner"
 | |
| 
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 |