Exemplo n.º 1
0
 public void onUnblockUserComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment localProfileFragment = ProfileFragment.this;
     boolean bool;
     if (!paramBoolean)
     {
       bool = true;
       ProfileFragment.access$702(localProfileFragment, bool);
       ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
       if (!paramBoolean)
         break label138;
       if (!isUsernameValid())
         break label124;
     }
     label124: for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624415))
     {
       Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624413, new Object[] { str }));
       ProfileFragment.this.addRequest(ProfileFragment.this.mAppController.fetchUser(ProfileFragment.this.mUserId));
       return;
       bool = false;
       break;
     }
     label138: Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624407));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624414));
 }
Exemplo n.º 2
0
 public void onGetBlockedUsersComplete(String paramString1, int paramInt, String paramString2, ArrayList<VineUser> paramArrayList)
 {
   if (paramInt == 200)
   {
     Iterator localIterator = paramArrayList.iterator();
     while (localIterator.hasNext())
       if (((VineUser)localIterator.next()).userId == ProfileFragment.this.mUserId)
         ProfileFragment.access$702(ProfileFragment.this, true);
     ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
   }
 }
Exemplo n.º 3
0
 public void onBlockUserComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment.access$702(ProfileFragment.this, paramBoolean);
     ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
     if (paramBoolean)
     {
       if (isUsernameValid());
       for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624415))
       {
         Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624406, new Object[] { str }));
         VineDatabaseHelper.getDatabaseHelper(ProfileFragment.this.getActivity()).removeUserWithType(ProfileFragment.this.mUserId, 2, true, Vine.UserGroupsView.CONTENT_URI_FOLLOWERS);
         return;
       }
     }
     Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624407));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624407));
 }