// 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 android.bluetooth.BluetoothDevice; import android.content.Context; import android.content.DialogInterface; import android.support.v4.app.FragmentActivity; import com.olio.state.Unit; import com.olio.util.ALog; import com.oliodevices.assist.app.activities.SetupActivityCallbacks; import com.oliodevices.assist.app.api.ApiResultCallback; import com.oliodevices.assist.app.api.UserManager; import com.oliodevices.assist.app.core.Utils; import retrofit.RetrofitError; import retrofit.client.Response; // Referenced classes of package com.oliodevices.assist.app.fragments: // SetupConnectFragment class val.context extends ApiResultCallback { final SetupConnectFragment this$0; final Context val$context; public void failure(RetrofitError retrofiterror) { if (retrofiterror != null && retrofiterror.getKind() == retrofit.ORK) { if (isAdded()) { (new android.app.it>(val$context)).Title(0x7f060098).Message(0x7f060126).Cancelable(true).NegativeButton(0x1040000, null).PositiveButton(0x104000a, new android.content.DialogInterface.OnClickListener() { final SetupConnectFragment._cls4 this$1; public void onClick(DialogInterface dialoginterface, int i) { SetupConnectFragment.access$900(this$0); } { this$1 = SetupConnectFragment._cls4.this; super(); } }).w(); return; } ALog.w("Fragment appears to be detached from Activity", new Object[0]); SetupConnectFragment.access$102(SetupConnectFragment.this, null); if (mCallbacks != null) { mCallbacks.goToScreen(9); } SetupConnectFragment.access$402(SetupConnectFragment.this, 0); return; } if (retrofiterror == null || retrofiterror.getResponse() == null) { SetupConnectFragment.access$102(SetupConnectFragment.this, null); if (mCallbacks != null) { mCallbacks.goToScreen(9); } SetupConnectFragment.access$402(SetupConnectFragment.this, 0); return; } switch (retrofiterror.getResponse().getStatus()) { default: SetupConnectFragment.access$102(SetupConnectFragment.this, null); SetupConnectFragment.access$300(SetupConnectFragment.this, 0x7f060148); SetupConnectFragment.access$402(SetupConnectFragment.this, 0); return; case 401: SetupConnectFragment.access$402(SetupConnectFragment.this, 0); break; } SetupConnectFragment.access$1000(SetupConnectFragment.this, 0x7f06006c, 0x7f06006b, 0x7f060071, 0x7f060070); } public void success(Unit unit) { if (!isAdded()) { break MISSING_BLOCK_LABEL_126; } UserManager.getInstance().updateUnitId(SetupConnectFragment.access$100(SetupConnectFragment.this).getAddress()); unit.setUnitId(unit.getId()); unit.save(getActivity().getContentResolver()); if (SetupConnectFragment.access$100(SetupConnectFragment.this).getBondState() != 12) goto _L2; else goto _L1 _L1: Utils.startServices(val$context); mCallbacks.goToScreen(8); _L4: return; _L2: SetupConnectFragment.access$800(SetupConnectFragment.this, "android.bluetooth.device.action.BOND_STATE_CHANGED"); if (SetupConnectFragment.access$100(SetupConnectFragment.this).createBond()) goto _L4; else goto _L3 _L3: ALog.d("createBond failed", new Object[0]); SetupConnectFragment.access$300(SetupConnectFragment.this, 0x7f060137); return; ALog.w("Fragment appears to be detached from Activity", new Object[0]); return; } public volatile void success(Object obj) { success((Unit)obj); } _cls1.this._cls1() { this$0 = final_setupconnectfragment; val$context = Context.this; super(); } }