示例#1
0
 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
   {
   }
 }
示例#2
0
 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);
       }
     }
   }
 }