コード例 #1
0
 public void onGetTimeLineComplete(String paramString1, int paramInt1, String paramString2, int paramInt2, int paramInt3, boolean paramBoolean1, ArrayList<VinePost> paramArrayList, String paramString3, int paramInt4, int paramInt5, int paramInt6, long paramLong, boolean paramBoolean2, int paramInt7, String paramString4)
 {
   PendingRequest localPendingRequest = ProfileFragment.this.removeRequest(paramString1);
   int i;
   ArrayList localArrayList2;
   int j;
   label228: Object localObject;
   if (localPendingRequest != null)
   {
     if ((paramInt2 != 2) && (paramInt2 != 10))
       break label401;
     i = 1;
     if ((i != 0) && (paramInt1 == 200))
     {
       ProfileFragment.this.mProfileHeaderAdapter.updatePostsCount(paramInt7);
       ProfileFragment.this.mProfileHeaderAdapter.notifyDataSetChanged();
     }
     if ((paramBoolean1) && (paramInt1 == 200))
     {
       if (((paramInt2 == 3) && (ProfileFragment.this.mCurrentTab == 2)) || ((i != 0) && (ProfileFragment.this.mCurrentTab == 1)))
       {
         Cursor localCursor1 = ProfileFragment.this.mCursorAdapter.getCursor();
         ArrayList localArrayList1 = null;
         if (localCursor1 != null)
         {
           int k = localCursor1.getCount();
           localArrayList1 = null;
           if (k > 0)
           {
             Bundle localBundle = new Bundle();
             localBundle.putBoolean("include_list", true);
             localCursor1.respond(localBundle);
             localArrayList1 = localCursor1.getExtras().getParcelableArrayList("extra_posts");
           }
         }
         localArrayList2 = HybridPostCursor.mergePosts(localArrayList1, paramArrayList, VineComparatorFactory.get(paramInt2), false);
         if (localArrayList2 != null)
         {
           if (ProfileFragment.this.mCurrentTab != 1)
             break label407;
           j = ProfileFragment.this.mCursorQuerySizePosts;
           if (!BuildUtil.isOldDeviceOrLowEndDevice(ProfileFragment.this.getActivity()))
             break label419;
           localObject = new HybridPostCursorExplore(localArrayList2, j);
           label254: if (paramInt5 <= 0)
             ((HybridPostCursor)localObject).markLast();
           if (ProfileFragment.this.mChangeObserver == null)
             break label435;
           Cursor localCursor2 = ProfileFragment.this.mCursorAdapter.swapCursor((Cursor)localObject);
           if (localCursor2 != null)
             localCursor2.unregisterContentObserver(ProfileFragment.this.mChangeObserver);
           ((HybridPostCursor)localObject).registerContentObserver(ProfileFragment.this.mChangeObserver);
           label319: ProfileFragment.this.mCursorAdapter.notifyDataSetChanged();
         }
       }
       if (i == 0)
         break label451;
       ProfileFragment.this.mCursorQuerySizePosts = ProfileFragment.this.mCursorAdapter.getCount();
     }
   }
   while (true)
   {
     ProfileFragment.this.mAppController.saveLoadedPosts(paramArrayList, paramInt2, paramString3, paramInt4, paramInt5, paramInt6, paramLong, false);
     if ((i != 0) || (paramInt2 == 3))
       ProfileFragment.this.hideProgress(localPendingRequest.fetchType);
     return;
     label401: i = 0;
     break;
     label407: j = ProfileFragment.this.mCursorQuerySizeLikes;
     break label228;
     label419: localObject = new HybridPostCursor(localArrayList2, j);
     break label254;
     label435: CrashUtil.logException(new VineException("Invalid observer"));
     break label319;
     label451: if (paramInt2 == 3)
       ProfileFragment.this.mCursorQuerySizeLikes = ProfileFragment.this.mCursorAdapter.getCount();
   }
 }
コード例 #2
0
 public Bundle respond(Bundle extras) {
   return mDatabaseCursor.respond(extras);
 }