131 lines
4.3 KiB
Java
131 lines
4.3 KiB
Java
package com.google.android.gms.maps;
|
|
|
|
import android.app.Activity;
|
|
import android.app.Fragment;
|
|
import android.os.Bundle;
|
|
import android.os.StrictMode;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
|
|
/* JADX INFO: compiled from: com.google.android.gms:play-services-maps@@19.0.0 */
|
|
/* JADX INFO: loaded from: classes2.dex */
|
|
public class StreetViewPanoramaFragment extends Fragment {
|
|
private final zzap zza = new zzap(this);
|
|
|
|
public static StreetViewPanoramaFragment newInstance() {
|
|
return new StreetViewPanoramaFragment();
|
|
}
|
|
|
|
public void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback onStreetViewPanoramaReadyCallback) {
|
|
Preconditions.checkMainThread("getStreetViewPanoramaAsync() must be called on the main thread");
|
|
Preconditions.checkNotNull(onStreetViewPanoramaReadyCallback, "callback must not be null.");
|
|
this.zza.zzb(onStreetViewPanoramaReadyCallback);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onActivityCreated(Bundle bundle) {
|
|
ClassLoader classLoader = StreetViewPanoramaFragment.class.getClassLoader();
|
|
if (bundle != null && classLoader != null) {
|
|
bundle.setClassLoader(classLoader);
|
|
}
|
|
super.onActivityCreated(bundle);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onAttach(Activity activity) {
|
|
super.onAttach(activity);
|
|
zzap.zza(this.zza, activity);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
this.zza.onCreate(bundle);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
return this.zza.onCreateView(layoutInflater, viewGroup, bundle);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onDestroy() {
|
|
this.zza.onDestroy();
|
|
super.onDestroy();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onDestroyView() {
|
|
this.zza.onDestroyView();
|
|
super.onDestroyView();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onInflate(Activity activity, AttributeSet attributeSet, Bundle bundle) {
|
|
StrictMode.ThreadPolicy threadPolicy = StrictMode.getThreadPolicy();
|
|
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(threadPolicy).permitAll().build());
|
|
try {
|
|
super.onInflate(activity, attributeSet, bundle);
|
|
zzap.zza(this.zza, activity);
|
|
this.zza.onInflate(activity, new Bundle(), bundle);
|
|
} finally {
|
|
StrictMode.setThreadPolicy(threadPolicy);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Fragment, android.content.ComponentCallbacks
|
|
public void onLowMemory() {
|
|
this.zza.onLowMemory();
|
|
super.onLowMemory();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onPause() {
|
|
this.zza.onPause();
|
|
super.onPause();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onResume() {
|
|
super.onResume();
|
|
this.zza.onResume();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onSaveInstanceState(Bundle bundle) {
|
|
ClassLoader classLoader = StreetViewPanoramaFragment.class.getClassLoader();
|
|
if (bundle != null && classLoader != null) {
|
|
bundle.setClassLoader(classLoader);
|
|
}
|
|
super.onSaveInstanceState(bundle);
|
|
this.zza.onSaveInstanceState(bundle);
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onStart() {
|
|
super.onStart();
|
|
this.zza.onStart();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void onStop() {
|
|
this.zza.onStop();
|
|
super.onStop();
|
|
}
|
|
|
|
@Override // android.app.Fragment
|
|
public void setArguments(Bundle bundle) {
|
|
super.setArguments(bundle);
|
|
}
|
|
|
|
public static StreetViewPanoramaFragment newInstance(StreetViewPanoramaOptions streetViewPanoramaOptions) {
|
|
StreetViewPanoramaFragment streetViewPanoramaFragment = new StreetViewPanoramaFragment();
|
|
Bundle bundle = new Bundle();
|
|
bundle.putParcelable("StreetViewPanoramaOptions", streetViewPanoramaOptions);
|
|
streetViewPanoramaFragment.setArguments(bundle);
|
|
return streetViewPanoramaFragment;
|
|
}
|
|
} |