// 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.oliodevices.assist.app.fragments; import com.google.android.gms.common.api.Result; import com.google.android.gms.common.api.ResultCallback; import com.google.android.gms.common.api.Status; import com.google.android.gms.location.places.AutocompletePrediction; import com.google.android.gms.location.places.AutocompletePredictionBuffer; import com.olio.data.object.user.LocationBuilder; import com.oliodevices.assist.app.adapters.LocationListAdapter; import com.oliodevices.assist.app.core.Utils; import java.util.ArrayList; import java.util.Iterator; // Referenced classes of package com.oliodevices.assist.app.fragments: // UpdateLocationFragment class this._cls0 implements ResultCallback { final UpdateLocationFragment this$0; public volatile void onResult(Result result) { onResult((AutocompletePredictionBuffer)result); } public void onResult(AutocompletePredictionBuffer autocompletepredictionbuffer) { if (!autocompletepredictionbuffer.getStatus().isSuccess()) { if (isAdded()) { Utils.showToastMessage(getActivity(), getString(0x7f0601b1)); } autocompletepredictionbuffer.release(); return; } ArrayList arraylist = new ArrayList(); AutocompletePrediction autocompleteprediction; for (Iterator iterator = autocompletepredictionbuffer.iterator(); iterator.hasNext(); arraylist.add(LocationBuilder.aLocation().setGooglePlaceId(autocompleteprediction.getPlaceId()).setDisplayAddress(autocompleteprediction.getDescription()).build())) { autocompleteprediction = (AutocompletePrediction)iterator.next(); } autocompletepredictionbuffer.release(); UpdateLocationFragment.access$000(UpdateLocationFragment.this).clear(); UpdateLocationFragment.access$000(UpdateLocationFragment.this).addAll(arraylist); } uffer() { this$0 = UpdateLocationFragment.this; super(); } }