granularity level: instruction

		.class final Lcom/google/android/gms/common/api/internal/zaa;
.super Lcom/google/android/gms/common/api/internal/LifecycleCallback;
.source "com.google.android.gms:play-services-base@@18.0.1"


.field private zaa:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/Runnable;",
">;"
}
.end annotation
.end field


.method private constructor <init>(Lcom/google/android/gms/common/api/internal/LifecycleFragment;)V
	.locals 1

	invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;-><init>(Lcom/google/android/gms/common/api/internal/LifecycleFragment;)V
	new-instance p1, Ljava/util/ArrayList;
	invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
	iput-object p1, p0, Lcom/google/android/gms/common/api/internal/zaa;->zaa:Ljava/util/List;
	iget-object p1, p0, Lcom/google/android/gms/common/api/internal/zaa;->mLifecycleFragment:Lcom/google/android/gms/common/api/internal/LifecycleFragment;
	const-string v0, "LifecycleObserverOnStop"
	invoke-interface {p1, v0, p0}, Lcom/google/android/gms/common/api/internal/LifecycleFragment;->addCallback(Ljava/lang/String;Lcom/google/android/gms/common/api/internal/LifecycleCallback;)V
	return-void
.end method

.method static bridge synthetic zaa(Landroid/app/Activity;)Lcom/google/android/gms/common/api/internal/zaa;
	.locals 3

	monitor-enter p0
	:try_start_0
	invoke-static {p0}, Lcom/google/android/gms/common/api/internal/zaa;->getFragment(Landroid/app/Activity;)Lcom/google/android/gms/common/api/internal/LifecycleFragment;
	move-result-object v0
	const-string v1, "LifecycleObserverOnStop"
	const-class v2, Lcom/google/android/gms/common/api/internal/zaa;
	invoke-interface {v0, v1, v2}, Lcom/google/android/gms/common/api/internal/LifecycleFragment;->getCallbackOrNull(Ljava/lang/String;Ljava/lang/Class;)Lcom/google/android/gms/common/api/internal/LifecycleCallback;
	move-result-object v1
	check-cast v1, Lcom/google/android/gms/common/api/internal/zaa;
	if-nez v1, :cond_0
	new-instance v1, Lcom/google/android/gms/common/api/internal/zaa;
	invoke-direct {v1, v0}, Lcom/google/android/gms/common/api/internal/zaa;-><init>(Lcom/google/android/gms/common/api/internal/LifecycleFragment;)V
	:cond_0
	monitor-exit p0
	return-object v1
	:catchall_0
	move-exception v0
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v0
.end method

.method static bridge synthetic zab(Lcom/google/android/gms/common/api/internal/zaa;Ljava/lang/Runnable;)V
	.locals 0

	invoke-direct {p0, p1}, Lcom/google/android/gms/common/api/internal/zaa;->zac(Ljava/lang/Runnable;)V
	return-void
.end method

.method private final declared-synchronized zac(Ljava/lang/Runnable;)V
	.locals 1

	monitor-enter p0
	:try_start_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zaa;->zaa:Ljava/util/List;
	invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit p0
	return-void
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
.end method

.method public final onStop()V
	.locals 2

	monitor-enter p0
	:try_start_0
	iget-object v0, p0, Lcom/google/android/gms/common/api/internal/zaa;->zaa:Ljava/util/List;
	new-instance v1, Ljava/util/ArrayList;
	invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
	iput-object v1, p0, Lcom/google/android/gms/common/api/internal/zaa;->zaa:Ljava/util/List;
	monitor-exit p0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
	move-result-object v0
	:goto_0
	invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
	move-result v1
	if-eqz v1, :cond_0
	invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Ljava/lang/Runnable;
	invoke-interface {v1}, Ljava/lang/Runnable;->run()V
	goto :goto_0
	:cond_0
	return-void
	:catchall_0
	move-exception v0
	:try_start_1
	monitor-exit p0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw v0
.end method