예제 #1
0
 public void onDisableUserRepostsComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment localProfileFragment = ProfileFragment.this;
     boolean bool;
     if (!paramBoolean)
     {
       bool = true;
       ProfileFragment.access$802(localProfileFragment, bool);
       ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
       if (!paramBoolean)
         break label112;
       if (!isUsernameValid())
         break label98;
     }
     label98: for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624416))
     {
       Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624254, new Object[] { str }));
       return;
       bool = false;
       break;
     }
     label112: Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624255));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624255));
 }
예제 #2
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));
 }
예제 #3
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();
   }
 }
예제 #4
0
 public void onGetUserComplete(String paramString1, int paramInt, String paramString2, VineUser paramVineUser)
 {
   PendingRequest localPendingRequest = ProfileFragment.this.removeRequest(paramString1);
   if (localPendingRequest != null)
   {
     if (paramInt == 200)
     {
       ProfileFragment.access$202(ProfileFragment.this, paramVineUser);
       if (ProfileFragment.this.isLocked())
       {
         ProfileFragment.access$402(ProfileFragment.this, null);
         ProfileFragment.this.setup();
       }
       if (ProfileFragment.this.mProfileHeaderAdapter != null)
       {
         ProfileFragment.this.bindUserData(ProfileFragment.this.mUser);
         ProfileFragment.this.mProfileHeaderAdapter.notifyDataSetChanged();
       }
     }
     ProfileFragment.this.hideProgress(localPendingRequest.fetchType);
   }
 }
예제 #5
0
 public void onGetUserIdComplete(String paramString1, int paramInt, String paramString2, long paramLong)
 {
   if (paramLong > 0L)
   {
     ProfileFragment.access$602(ProfileFragment.this, paramLong);
     ProfileFragment localProfileFragment = ProfileFragment.this;
     if (ProfileFragment.this.mUserId == ProfileFragment.this.mAppController.getActiveId());
     for (boolean bool = true; ; bool = false)
     {
       ProfileFragment.access$102(localProfileFragment, bool);
       if (!ProfileFragment.this.mIsMe)
         break;
       ProfileFragment.access$1102(ProfileFragment.this, Util.getDefaultSharedPrefs(ProfileFragment.this.getActivity()).getBoolean("profile_hide_reposts", false));
       ProfileFragment.this.setup();
       ProfileFragment.this.initProfile();
       return;
     }
     ProfileFragment.this.mAppController.getBlockedUsers();
     ProfileFragment.this.getLoaderManager().restartLoader(3, null, ProfileFragment.this);
     return;
   }
   ProfileFragment.this.getActivity().finish();
 }
예제 #6
0
 public void onEnableUserRepostsComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment.access$802(ProfileFragment.this, paramBoolean);
     ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
     if (paramBoolean)
     {
       if (isUsernameValid());
       for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624416))
       {
         Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624256, new Object[] { str }));
         return;
       }
     }
     Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624257));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624257));
 }
예제 #7
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));
 }