// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.google.android.gms.maps; import android.app.Activity; import android.app.Fragment; import android.os.Bundle; import android.os.RemoteException; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.google.android.gms.common.GooglePlayServicesNotAvailableException; import com.google.android.gms.common.internal.zzu; import com.google.android.gms.dynamic.zze; import com.google.android.gms.dynamic.zzf; import com.google.android.gms.maps.internal.IStreetViewPanoramaDelegate; import com.google.android.gms.maps.internal.IStreetViewPanoramaFragmentDelegate; import com.google.android.gms.maps.internal.StreetViewLifecycleDelegate; import com.google.android.gms.maps.internal.zzc; import com.google.android.gms.maps.internal.zzx; import com.google.android.gms.maps.internal.zzy; import com.google.android.gms.maps.model.RuntimeRemoteException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; // Referenced classes of package com.google.android.gms.maps: // StreetViewPanorama, StreetViewPanoramaOptions, OnStreetViewPanoramaReadyCallback, MapsInitializer public class StreetViewPanoramaFragment extends Fragment { static class zza implements StreetViewLifecycleDelegate { private final IStreetViewPanoramaFragmentDelegate zzaCr; private final Fragment zzajt; public void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback onstreetviewpanoramareadycallback) { try { zzaCr.getStreetViewPanoramaAsync(new com.google.android.gms.maps.internal.zzv.zza(this, onstreetviewpanoramareadycallback) { final OnStreetViewPanoramaReadyCallback zzaCs; final zza zzaCt; public void zza(IStreetViewPanoramaDelegate istreetviewpanoramadelegate) throws RemoteException { zzaCs.onStreetViewPanoramaReady(new StreetViewPanorama(istreetviewpanoramadelegate)); } { zzaCt = zza1; zzaCs = onstreetviewpanoramareadycallback; super(); } }); return; } // Misplaced declaration of an exception variable catch (OnStreetViewPanoramaReadyCallback onstreetviewpanoramareadycallback) { throw new RuntimeRemoteException(onstreetviewpanoramareadycallback); } } public void onCreate(Bundle bundle) { Bundle bundle1; bundle1 = bundle; if (bundle != null) { break MISSING_BLOCK_LABEL_14; } bundle1 = new Bundle(); bundle = zzajt.getArguments(); if (bundle == null) { break MISSING_BLOCK_LABEL_47; } if (bundle.containsKey("StreetViewPanoramaOptions")) { zzx.zza(bundle1, "StreetViewPanoramaOptions", bundle.getParcelable("StreetViewPanoramaOptions")); } zzaCr.onCreate(bundle1); return; bundle; throw new RuntimeRemoteException(bundle); } public View onCreateView(LayoutInflater layoutinflater, ViewGroup viewgroup, Bundle bundle) { try { layoutinflater = zzaCr.onCreateView(zze.zzw(layoutinflater), zze.zzw(viewgroup), bundle); } // Misplaced declaration of an exception variable catch (LayoutInflater layoutinflater) { throw new RuntimeRemoteException(layoutinflater); } return (View)zze.zzn(layoutinflater); } public void onDestroy() { try { zzaCr.onDestroy(); return; } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } } public void onDestroyView() { try { zzaCr.onDestroyView(); return; } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } } public void onInflate(Activity activity, Bundle bundle, Bundle bundle1) { try { zzaCr.onInflate(zze.zzw(activity), null, bundle1); return; } // Misplaced declaration of an exception variable catch (Activity activity) { throw new RuntimeRemoteException(activity); } } public void onLowMemory() { try { zzaCr.onLowMemory(); return; } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } } public void onPause() { try { zzaCr.onPause(); return; } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } } public void onResume() { try { zzaCr.onResume(); return; } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } } public void onSaveInstanceState(Bundle bundle) { try { zzaCr.onSaveInstanceState(bundle); return; } // Misplaced declaration of an exception variable catch (Bundle bundle) { throw new RuntimeRemoteException(bundle); } } public void onStart() { } public void onStop() { } public IStreetViewPanoramaFragmentDelegate zzvx() { return zzaCr; } public zza(Fragment fragment, IStreetViewPanoramaFragmentDelegate istreetviewpanoramafragmentdelegate) { zzaCr = (IStreetViewPanoramaFragmentDelegate)zzu.zzu(istreetviewpanoramafragmentdelegate); zzajt = (Fragment)zzu.zzu(fragment); } } static class zzb extends com.google.android.gms.dynamic.zza { private Activity mActivity; protected zzf zzaBZ; private final List zzaCu = new ArrayList(); private final Fragment zzajt; private void setActivity(Activity activity) { mActivity = activity; zzvu(); } static void zza(zzb zzb1, Activity activity) { zzb1.setActivity(activity); } public void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback onstreetviewpanoramareadycallback) { if (zzqj() != null) { ((zza)zzqj()).getStreetViewPanoramaAsync(onstreetviewpanoramareadycallback); return; } else { zzaCu.add(onstreetviewpanoramareadycallback); return; } } protected void zza(zzf zzf1) { zzaBZ = zzf1; zzvu(); } public void zzvu() { if (mActivity == null || zzaBZ == null || zzqj() != null) { break MISSING_BLOCK_LABEL_132; } try { MapsInitializer.initialize(mActivity); IStreetViewPanoramaFragmentDelegate istreetviewpanoramafragmentdelegate = zzy.zzay(mActivity).zzs(zze.zzw(mActivity)); zzaBZ.zza(new zza(zzajt, istreetviewpanoramafragmentdelegate)); OnStreetViewPanoramaReadyCallback onstreetviewpanoramareadycallback; for (Iterator iterator = zzaCu.iterator(); iterator.hasNext(); ((zza)zzqj()).getStreetViewPanoramaAsync(onstreetviewpanoramareadycallback)) { onstreetviewpanoramareadycallback = (OnStreetViewPanoramaReadyCallback)iterator.next(); } } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } catch (GooglePlayServicesNotAvailableException googleplayservicesnotavailableexception) { return; } zzaCu.clear(); } zzb(Fragment fragment) { zzajt = fragment; } } private final zzb zzaCp = new zzb(this); private StreetViewPanorama zzaCq; public StreetViewPanoramaFragment() { } public static StreetViewPanoramaFragment newInstance() { return new StreetViewPanoramaFragment(); } public static StreetViewPanoramaFragment newInstance(StreetViewPanoramaOptions streetviewpanoramaoptions) { StreetViewPanoramaFragment streetviewpanoramafragment = new StreetViewPanoramaFragment(); Bundle bundle = new Bundle(); bundle.putParcelable("StreetViewPanoramaOptions", streetviewpanoramaoptions); streetviewpanoramafragment.setArguments(bundle); return streetviewpanoramafragment; } public final StreetViewPanorama getStreetViewPanorama() { Object obj = zzvx(); if (obj != null) { try { obj = ((IStreetViewPanoramaFragmentDelegate) (obj)).getStreetViewPanorama(); } catch (RemoteException remoteexception) { throw new RuntimeRemoteException(remoteexception); } if (obj != null) { if (zzaCq == null || zzaCq.zzvw().asBinder() != ((IStreetViewPanoramaDelegate) (obj)).asBinder()) { zzaCq = new StreetViewPanorama(((IStreetViewPanoramaDelegate) (obj))); } return zzaCq; } } return null; } public void getStreetViewPanoramaAsync(OnStreetViewPanoramaReadyCallback onstreetviewpanoramareadycallback) { zzu.zzbY("getStreetViewPanoramaAsync() must be called on the main thread"); zzaCp.getStreetViewPanoramaAsync(onstreetviewpanoramareadycallback); } public void onActivityCreated(Bundle bundle) { if (bundle != null) { bundle.setClassLoader(com/google/android/gms/maps/StreetViewPanoramaFragment.getClassLoader()); } super.onActivityCreated(bundle); } public void onAttach(Activity activity) { super.onAttach(activity); zzb.zza(zzaCp, activity); } public void onCreate(Bundle bundle) { super.onCreate(bundle); zzaCp.onCreate(bundle); } public View onCreateView(LayoutInflater layoutinflater, ViewGroup viewgroup, Bundle bundle) { return zzaCp.onCreateView(layoutinflater, viewgroup, bundle); } public void onDestroy() { zzaCp.onDestroy(); super.onDestroy(); } public void onDestroyView() { zzaCp.onDestroyView(); super.onDestroyView(); } public void onInflate(Activity activity, AttributeSet attributeset, Bundle bundle) { super.onInflate(activity, attributeset, bundle); zzb.zza(zzaCp, activity); attributeset = new Bundle(); zzaCp.onInflate(activity, attributeset, bundle); } public void onLowMemory() { zzaCp.onLowMemory(); super.onLowMemory(); } public void onPause() { zzaCp.onPause(); super.onPause(); } public void onResume() { super.onResume(); zzaCp.onResume(); } public void onSaveInstanceState(Bundle bundle) { if (bundle != null) { bundle.setClassLoader(com/google/android/gms/maps/StreetViewPanoramaFragment.getClassLoader()); } super.onSaveInstanceState(bundle); zzaCp.onSaveInstanceState(bundle); } public void setArguments(Bundle bundle) { super.setArguments(bundle); } protected IStreetViewPanoramaFragmentDelegate zzvx() { zzaCp.zzvu(); if (zzaCp.zzqj() == null) { return null; } else { return ((zza)zzaCp.zzqj()).zzvx(); } } }