72 lines
2.1 KiB
Java
72 lines
2.1 KiB
Java
|
package com.google.android.gms.common.api.internal;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.ContextWrapper;
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import com.google.android.gms.common.internal.Preconditions;
|
||
|
import java.io.FileDescriptor;
|
||
|
import java.io.PrintWriter;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class LifecycleCallback {
|
||
|
protected final LifecycleFragment mLifecycleFragment;
|
||
|
|
||
|
private static LifecycleFragment getChimeraLifecycleFragmentImpl(LifecycleActivity lifecycleActivity) {
|
||
|
throw new IllegalStateException("Method not available in SDK.");
|
||
|
}
|
||
|
|
||
|
public static LifecycleFragment getFragment(Activity activity) {
|
||
|
return getFragment(new LifecycleActivity(activity));
|
||
|
}
|
||
|
|
||
|
public void dump(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
|
||
|
}
|
||
|
|
||
|
public Activity getActivity() {
|
||
|
Activity lifecycleActivity = this.mLifecycleFragment.getLifecycleActivity();
|
||
|
Preconditions.checkNotNull(lifecycleActivity);
|
||
|
return lifecycleActivity;
|
||
|
}
|
||
|
|
||
|
public void onActivityResult(int i, int i2, Intent intent) {
|
||
|
}
|
||
|
|
||
|
public void onCreate(Bundle bundle) {
|
||
|
}
|
||
|
|
||
|
public void onDestroy() {
|
||
|
}
|
||
|
|
||
|
public void onResume() {
|
||
|
}
|
||
|
|
||
|
public void onSaveInstanceState(Bundle bundle) {
|
||
|
}
|
||
|
|
||
|
public void onStart() {
|
||
|
}
|
||
|
|
||
|
public void onStop() {
|
||
|
}
|
||
|
|
||
|
public static LifecycleFragment getFragment(ContextWrapper contextWrapper) {
|
||
|
throw new UnsupportedOperationException();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public static LifecycleFragment getFragment(LifecycleActivity lifecycleActivity) {
|
||
|
if (lifecycleActivity.zzd()) {
|
||
|
return zzd.zzc(lifecycleActivity.zzb());
|
||
|
}
|
||
|
if (lifecycleActivity.zzc()) {
|
||
|
return zzb.zzc(lifecycleActivity.zza());
|
||
|
}
|
||
|
throw new IllegalArgumentException("Can't get fragment for unexpected activity.");
|
||
|
}
|
||
|
|
||
|
public LifecycleCallback(LifecycleFragment lifecycleFragment) {
|
||
|
this.mLifecycleFragment = lifecycleFragment;
|
||
|
}
|
||
|
}
|