913 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			913 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public abstract Landroidx/lifecycle/LiveData;
 | |
| .super Ljava/lang/Object;
 | |
| .source "LiveData.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Landroidx/lifecycle/LiveData$AlwaysActiveObserver;,
 | |
|         Landroidx/lifecycle/LiveData$ObserverWrapper;,
 | |
|         Landroidx/lifecycle/LiveData$LifecycleBoundObserver;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<T:",
 | |
|         "Ljava/lang/Object;",
 | |
|         ">",
 | |
|         "Ljava/lang/Object;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final NOT_SET:Ljava/lang/Object;
 | |
| 
 | |
| .field public static final START_VERSION:I = -0x1
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public mActiveCount:I
 | |
| 
 | |
| .field private mChangingActiveState:Z
 | |
| 
 | |
| .field private volatile mData:Ljava/lang/Object;
 | |
| 
 | |
| .field public final mDataLock:Ljava/lang/Object;
 | |
| 
 | |
| .field private mDispatchInvalidated:Z
 | |
| 
 | |
| .field private mDispatchingValue:Z
 | |
| 
 | |
| .field private mObservers:Lm/b;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lm/b<",
 | |
|             "Landroidx/lifecycle/Observer<",
 | |
|             "-TT;>;",
 | |
|             "Landroidx/lifecycle/LiveData<",
 | |
|             "TT;>.ObserverWrapper;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public volatile mPendingData:Ljava/lang/Object;
 | |
| 
 | |
| .field private final mPostValueRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
| .field private mVersion:I
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method static constructor <clinit>()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/Object;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     sput-object v0, Landroidx/lifecycle/LiveData;->NOT_SET:Ljava/lang/Object;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 9
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 10
 | |
|     new-instance v0, Ljava/lang/Object;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/lifecycle/LiveData;->mDataLock:Ljava/lang/Object;
 | |
| 
 | |
|     .line 11
 | |
|     new-instance v0, Lm/b;
 | |
| 
 | |
|     invoke-direct {v0}, Lm/b;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 12
 | |
|     iput v0, p0, Landroidx/lifecycle/LiveData;->mActiveCount:I
 | |
| 
 | |
|     .line 13
 | |
|     sget-object v0, Landroidx/lifecycle/LiveData;->NOT_SET:Ljava/lang/Object;
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/lifecycle/LiveData;->mPendingData:Ljava/lang/Object;
 | |
| 
 | |
|     .line 14
 | |
|     new-instance v1, Landroidx/lifecycle/LiveData$1;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Landroidx/lifecycle/LiveData$1;-><init>(Landroidx/lifecycle/LiveData;)V
 | |
| 
 | |
|     iput-object v1, p0, Landroidx/lifecycle/LiveData;->mPostValueRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
|     .line 15
 | |
|     iput-object v0, p0, Landroidx/lifecycle/LiveData;->mData:Ljava/lang/Object;
 | |
| 
 | |
|     const/4 v0, -0x1
 | |
| 
 | |
|     .line 16
 | |
|     iput v0, p0, Landroidx/lifecycle/LiveData;->mVersion:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Ljava/lang/Object;)V
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/lang/Object;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/lifecycle/LiveData;->mDataLock:Ljava/lang/Object;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lm/b;
 | |
| 
 | |
|     invoke-direct {v0}, Lm/b;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     iput v0, p0, Landroidx/lifecycle/LiveData;->mActiveCount:I
 | |
| 
 | |
|     .line 5
 | |
|     sget-object v1, Landroidx/lifecycle/LiveData;->NOT_SET:Ljava/lang/Object;
 | |
| 
 | |
|     iput-object v1, p0, Landroidx/lifecycle/LiveData;->mPendingData:Ljava/lang/Object;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v1, Landroidx/lifecycle/LiveData$1;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Landroidx/lifecycle/LiveData$1;-><init>(Landroidx/lifecycle/LiveData;)V
 | |
| 
 | |
|     iput-object v1, p0, Landroidx/lifecycle/LiveData;->mPostValueRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
|     .line 7
 | |
|     iput-object p1, p0, Landroidx/lifecycle/LiveData;->mData:Ljava/lang/Object;
 | |
| 
 | |
|     .line 8
 | |
|     iput v0, p0, Landroidx/lifecycle/LiveData;->mVersion:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static assertMainThread(Ljava/lang/String;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Ll/a;->f()Ll/a;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0}, Ll/a;->c()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/IllegalStateException;
 | |
| 
 | |
|     const-string v1, "Cannot invoke "
 | |
| 
 | |
|     const-string v2, " on a background thread"
 | |
| 
 | |
|     invoke-static {v1, p0, v2}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method private considerNotify(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
 | |
|     .locals 2
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroidx/lifecycle/LiveData<",
 | |
|             "TT;>.ObserverWrapper;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->mActive:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     invoke-virtual {p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->shouldBeActive()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1, v0}, Landroidx/lifecycle/LiveData$ObserverWrapper;->activeStateChanged(Z)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 4
 | |
|     :cond_1
 | |
|     iget v0, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->mLastVersion:I
 | |
| 
 | |
|     iget v1, p0, Landroidx/lifecycle/LiveData;->mVersion:I
 | |
| 
 | |
|     if-lt v0, v1, :cond_2
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_2
 | |
|     iput v1, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->mLastVersion:I
 | |
| 
 | |
|     .line 6
 | |
|     iget-object p1, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->mObserver:Landroidx/lifecycle/Observer;
 | |
| 
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mData:Ljava/lang/Object;
 | |
| 
 | |
|     invoke-interface {p1, v0}, Landroidx/lifecycle/Observer;->onChanged(Ljava/lang/Object;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public changeActiveCounter(I)V
 | |
|     .locals 4
 | |
|     .annotation build Landroidx/annotation/MainThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Landroidx/lifecycle/LiveData;->mActiveCount:I
 | |
| 
 | |
|     add-int/2addr p1, v0
 | |
| 
 | |
|     .line 2
 | |
|     iput p1, p0, Landroidx/lifecycle/LiveData;->mActiveCount:I
 | |
| 
 | |
|     .line 3
 | |
|     iget-boolean p1, p0, Landroidx/lifecycle/LiveData;->mChangingActiveState:Z
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean p1, p0, Landroidx/lifecycle/LiveData;->mChangingActiveState:Z
 | |
| 
 | |
|     :goto_0
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     :try_start_0
 | |
|     iget v2, p0, Landroidx/lifecycle/LiveData;->mActiveCount:I
 | |
| 
 | |
|     if-eq v0, v2, :cond_5
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     if-lez v2, :cond_1
 | |
| 
 | |
|     move v3, p1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     move v3, v1
 | |
| 
 | |
|     :goto_1
 | |
|     if-lez v0, :cond_2
 | |
| 
 | |
|     if-nez v2, :cond_2
 | |
| 
 | |
|     move v0, p1
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_2
 | |
|     move v0, v1
 | |
| 
 | |
|     :goto_2
 | |
|     if-eqz v3, :cond_3
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Landroidx/lifecycle/LiveData;->onActive()V
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :cond_3
 | |
|     if-eqz v0, :cond_4
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Landroidx/lifecycle/LiveData;->onInactive()V
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     :cond_4
 | |
|     :goto_3
 | |
|     move v0, v2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 8
 | |
|     :cond_5
 | |
|     iput-boolean v1, p0, Landroidx/lifecycle/LiveData;->mChangingActiveState:Z
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     iput-boolean v1, p0, Landroidx/lifecycle/LiveData;->mChangingActiveState:Z
 | |
| 
 | |
|     .line 9
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public dispatchingValue(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroidx/lifecycle/LiveData$ObserverWrapper;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroidx/lifecycle/LiveData<",
 | |
|             "TT;>.ObserverWrapper;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Landroidx/lifecycle/LiveData;->mDispatchingValue:Z
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iput-boolean v1, p0, Landroidx/lifecycle/LiveData;->mDispatchInvalidated:Z
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iput-boolean v1, p0, Landroidx/lifecycle/LiveData;->mDispatchingValue:Z
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     iput-boolean v0, p0, Landroidx/lifecycle/LiveData;->mDispatchInvalidated:Z
 | |
| 
 | |
|     if-eqz p1, :cond_2
 | |
| 
 | |
|     .line 5
 | |
|     invoke-direct {p0, p1}, Landroidx/lifecycle/LiveData;->considerNotify(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_2
 | |
|     iget-object v1, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v1}, Lm/b;->c()Lm/b$d;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     :cond_3
 | |
|     invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_4
 | |
| 
 | |
|     .line 8
 | |
|     invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Ljava/util/Map$Entry;
 | |
| 
 | |
|     invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Landroidx/lifecycle/LiveData$ObserverWrapper;
 | |
| 
 | |
|     invoke-direct {p0, v2}, Landroidx/lifecycle/LiveData;->considerNotify(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
 | |
| 
 | |
|     .line 9
 | |
|     iget-boolean v2, p0, Landroidx/lifecycle/LiveData;->mDispatchInvalidated:Z
 | |
| 
 | |
|     if-eqz v2, :cond_3
 | |
| 
 | |
|     .line 10
 | |
|     :cond_4
 | |
|     :goto_0
 | |
|     iget-boolean v1, p0, Landroidx/lifecycle/LiveData;->mDispatchInvalidated:Z
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     .line 11
 | |
|     iput-boolean v0, p0, Landroidx/lifecycle/LiveData;->mDispatchingValue:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getValue()Ljava/lang/Object;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()TT;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mData:Ljava/lang/Object;
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v1, Landroidx/lifecycle/LiveData;->NOT_SET:Ljava/lang/Object;
 | |
| 
 | |
|     if-eq v0, v1, :cond_0
 | |
| 
 | |
|     return-object v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getVersion()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Landroidx/lifecycle/LiveData;->mVersion:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public hasActiveObservers()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Landroidx/lifecycle/LiveData;->mActiveCount:I
 | |
| 
 | |
|     if-lez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public hasObservers()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     invoke-virtual {v0}, Lm/b;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-lez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroidx/lifecycle/LifecycleOwner;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroidx/lifecycle/Observer;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/MainThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroidx/lifecycle/LifecycleOwner;",
 | |
|             "Landroidx/lifecycle/Observer<",
 | |
|             "-TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "observe"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Landroidx/lifecycle/LiveData;->assertMainThread(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->getCurrentState()Landroidx/lifecycle/Lifecycle$State;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sget-object v1, Landroidx/lifecycle/Lifecycle$State;->DESTROYED:Landroidx/lifecycle/Lifecycle$State;
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     new-instance v0, Landroidx/lifecycle/LiveData$LifecycleBoundObserver;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1, p2}, Landroidx/lifecycle/LiveData$LifecycleBoundObserver;-><init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v1, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     invoke-virtual {v1, p2, v0}, Lm/b;->f(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     check-cast p2, Landroidx/lifecycle/LiveData$ObserverWrapper;
 | |
| 
 | |
|     if-eqz p2, :cond_2
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p2, p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->isAttachedTo(Landroidx/lifecycle/LifecycleOwner;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p2, "Cannot add the same observer with different lifecycles"
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     if-eqz p2, :cond_3
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 7
 | |
|     :cond_3
 | |
|     invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroidx/lifecycle/Lifecycle;->addObserver(Landroidx/lifecycle/LifecycleObserver;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public observeForever(Landroidx/lifecycle/Observer;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroidx/lifecycle/Observer;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/MainThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroidx/lifecycle/Observer<",
 | |
|             "-TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "observeForever"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Landroidx/lifecycle/LiveData;->assertMainThread(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Landroidx/lifecycle/LiveData$AlwaysActiveObserver;
 | |
| 
 | |
|     invoke-direct {v0, p0, p1}, Landroidx/lifecycle/LiveData$AlwaysActiveObserver;-><init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     invoke-virtual {v1, p1, v0}, Lm/b;->f(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Landroidx/lifecycle/LiveData$ObserverWrapper;
 | |
| 
 | |
|     .line 4
 | |
|     instance-of v1, p1, Landroidx/lifecycle/LiveData$LifecycleBoundObserver;
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0, p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->activeStateChanged(Z)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "Cannot add the same observer with different lifecycles"
 | |
| 
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public onActive()V
 | |
|     .locals 0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onInactive()V
 | |
|     .locals 0
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public postValue(Ljava/lang/Object;)V
 | |
|     .locals 3
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mDataLock:Ljava/lang/Object;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     iget-object v1, p0, Landroidx/lifecycle/LiveData;->mPendingData:Ljava/lang/Object;
 | |
| 
 | |
|     sget-object v2, Landroidx/lifecycle/LiveData;->NOT_SET:Ljava/lang/Object;
 | |
| 
 | |
|     if-ne v1, v2, :cond_0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     :goto_0
 | |
|     iput-object p1, p0, Landroidx/lifecycle/LiveData;->mPendingData:Ljava/lang/Object;
 | |
| 
 | |
|     .line 4
 | |
|     monitor-exit v0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     if-nez v1, :cond_1
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     invoke-static {}, Ll/a;->f()Ll/a;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mPostValueRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Ll/a;->d(Ljava/lang/Runnable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 6
 | |
|     :try_start_1
 | |
|     monitor-exit v0
 | |
|     :try_end_1
 | |
|     .catchall {:try_start_1 .. :try_end_1} :catchall_0
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public removeObserver(Landroidx/lifecycle/Observer;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroidx/lifecycle/Observer;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/MainThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroidx/lifecycle/Observer<",
 | |
|             "-TT;>;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "removeObserver"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Landroidx/lifecycle/LiveData;->assertMainThread(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lm/b;->g(Ljava/lang/Object;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Landroidx/lifecycle/LiveData$ObserverWrapper;
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->detachObserver()V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1, v0}, Landroidx/lifecycle/LiveData$ObserverWrapper;->activeStateChanged(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public removeObservers(Landroidx/lifecycle/LifecycleOwner;)V
 | |
|     .locals 3
 | |
|     .param p1    # Landroidx/lifecycle/LifecycleOwner;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/MainThread;
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "removeObservers"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Landroidx/lifecycle/LiveData;->assertMainThread(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Landroidx/lifecycle/LiveData;->mObservers:Lm/b;
 | |
| 
 | |
|     invoke-virtual {v0}, Lm/b;->iterator()Ljava/util/Iterator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :cond_0
 | |
|     :goto_0
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Ljava/util/Map$Entry;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Landroidx/lifecycle/LiveData$ObserverWrapper;
 | |
| 
 | |
|     invoke-virtual {v2, p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->isAttachedTo(Landroidx/lifecycle/LifecycleOwner;)Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Landroidx/lifecycle/Observer;
 | |
| 
 | |
|     invoke-virtual {p0, v1}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setValue(Ljava/lang/Object;)V
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/MainThread;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(TT;)V"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     const-string v0, "setValue"
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0}, Landroidx/lifecycle/LiveData;->assertMainThread(Ljava/lang/String;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget v0, p0, Landroidx/lifecycle/LiveData;->mVersion:I
 | |
| 
 | |
|     add-int/lit8 v0, v0, 0x1
 | |
| 
 | |
|     iput v0, p0, Landroidx/lifecycle/LiveData;->mVersion:I
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Landroidx/lifecycle/LiveData;->mData:Ljava/lang/Object;
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0, p1}, Landroidx/lifecycle/LiveData;->dispatchingValue(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |