public static void a(zq paramzq) { boolean bool1 = false; try { boolean bool2 = b; App.d(true); AccountManager localAccountManager = AccountManager.get(App.Mb.getApplicationContext()); Account[] arrayOfAccount = localAccountManager.getAccountsByType(App.Mb.getString(2131296266)); Account localAccount; if (arrayOfAccount.length <= 0) { localAccount = new Account(App.c(), App.Mb.getString(2131296266)); localAccountManager.addAccountExplicitly(localAccount, null, null); if (!bool2); } else { localAccount = arrayOfAccount[0]; } a(localAccount, paramzq.h, paramzq.b); App.d(false); if (App.wc != 0) { if (bool2) b = bool1; } else return; bool1 = true; } finally { } }
public void onCreate(Bundle paramBundle) { boolean bool = PerformSyncManager.b; super.onCreate(paramBundle); g5.b(z[1]); if ((App.bb == null) || (App.c(this) != 3)) { App.a(this, 2131296621, 1); finish(); } while (true) { return; if (!App.z.l()) { String str = Environment.getExternalStorageState(); if ((!str.equals(z[2])) && (!str.equals(z[0]))) { showDialog(107); if (!bool); } else { int i = App.z.e(); g5.b(z[3] + i); if (i > 0) { showDialog(105); if (!bool); } else { new ac(this, false, false).execute(new Object[0]); } } if (!bool); } else { e(); } } }
public static void a() { Account localAccount = null; while (true) { AccountManager localAccountManager; try { tp.a = true; localAccountManager = AccountManager.get(App.Mb.getApplicationContext()); Account[] arrayOfAccount = localAccountManager.getAccountsByType(App.Mb.getString(2131296266)); int i = arrayOfAccount.length; if (i > 0) try { localAccount = arrayOfAccount[0]; a(arrayOfAccount[0]); if (!ContentResolver.getSyncAutomatically(localAccount, z[5])) ContentResolver.setSyncAutomatically(localAccount, z[5], true); tp.a = false; return; } catch (OperationCanceledException localOperationCanceledException2) { g5.d(localOperationCanceledException2); continue; } } finally { } localAccount = new Account(App.c(), App.Mb.getString(2131296266)); if (localAccountManager.addAccountExplicitly(localAccount, null, null)) { g5.b(z[29]); ContentResolver.setIsSyncable(localAccount, z[5], 1); try { a(localAccount); } catch (OperationCanceledException localOperationCanceledException1) { g5.d(localOperationCanceledException1); } } } }
public static void b() { try { boolean bool = b; Uri localUri = ContactsContract.RawContacts.CONTENT_URI.buildUpon().appendQueryParameter(z[4], App.c()).appendQueryParameter(z[10], z[17]).appendQueryParameter(z[16], z[14]).build(); ContentResolver localContentResolver1 = App.ib; String[] arrayOfString1 = new String[1]; arrayOfString1[0] = z[18]; Cursor localCursor = localContentResolver1.query(localUri, arrayOfString1, null, null, null); if (localCursor != null) { do { if (!localCursor.moveToNext()) break; ContentResolver localContentResolver2 = App.ib; String str = z[15]; String[] arrayOfString2 = new String[1]; arrayOfString2[0] = String.valueOf(localCursor.getLong(0)); localContentResolver2.delete(localUri, str, arrayOfString2); } while (!bool); localCursor.close(); } return; } finally { localObject = finally; throw localObject; } }