// 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.os.AsyncTask; import com.olio.util.ALog; import com.oliodevices.assist.app.activities.SetupActivityCallbacks; import com.oliodevices.assist.app.api.UserManager; import com.oliodevices.assist.app.core.OlioApplication; import com.oliodevices.assist.app.core.Utils; // Referenced classes of package com.oliodevices.assist.app.fragments: // SetupConnectFragment class val.device extends AsyncTask { final SetupConnectFragment this$0; final BluetoothDevice val$device; protected volatile Object doInBackground(Object aobj[]) { return doInBackground((Void[])aobj); } protected transient Void doInBackground(Void avoid[]) { if (!isCancelled()) { long l = System.currentTimeMillis(); while (val$device.getBondState() != 12 && l + 2000L < System.currentTimeMillis()) { try { ALog.d("%s not bonded", new Object[] { val$device.getAddress() }); Thread.sleep(500L); } // Misplaced declaration of an exception variable catch (Void avoid[]) { ALog.e("Cannot put thread to sleep", avoid, new Object[0]); } } } return null; } protected volatile void onPostExecute(Object obj) { onPostExecute((Void)obj); } protected void onPostExecute(Void void1) { if (val$device.getBondState() != 12) { if (isResumed()) { ALog.d("%s not bonded, failing", new Object[] { val$device.getAddress() }); SetupConnectFragment.access$300(SetupConnectFragment.this, 0x7f060137); SetupConnectFragment.access$402(SetupConnectFragment.this, 0); } else { SetupConnectFragment.access$402(SetupConnectFragment.this, 3); } OlioApplication.getApplication().reportWatchTracking("PairingFailed", UserManager.getInstance().getEmailForAnalytics(), 0); } else { if (isResumed()) { ALog.d("%s bonded", new Object[] { val$device.getAddress() }); mCallbacks.goToScreen(8); SetupConnectFragment.access$402(SetupConnectFragment.this, 0); } else { SetupConnectFragment.access$402(SetupConnectFragment.this, 2); } OlioApplication.getApplication().reportWatchTracking("Paired", UserManager.getInstance().getEmailForAnalytics(), 0); if (isResumed()) { Utils.startServices(getActivity()); return; } } } () { this$0 = final_setupconnectfragment; val$device = BluetoothDevice.this; super(); } }