Ejemplo n.º 1
0
 protected void refresh()
 {
   fetchContent(2, true);
   if (this.mIsMe)
   {
     addRequest(this.mAppController.fetchUsersMe(this.mAppController.getActiveId()));
     return;
   }
   addRequest(this.mAppController.fetchUser(this.mUserId));
 }
Ejemplo n.º 2
0
 public void onLoadFinished(Loader<Cursor> paramLoader, Cursor paramCursor)
 {
   int i = 1;
   Cursor localCursor = this.mFeedAdapter.getCursor();
   switch (paramLoader.getId())
   {
   default:
   case 1:
   case 2:
     label224: label226: 
     do
     {
       while (true)
       {
         return;
         if (this.mCurrentTab == i)
         {
           if (localCursor != null)
             localCursor.unregisterContentObserver(this.mChangeObserver);
           if (paramCursor != null)
             paramCursor.registerContentObserver(this.mChangeObserver);
           this.mFeedAdapter.swapCursor(paramCursor);
           if ((this.mFeedAdapter.isEmpty()) && ((0x2 & this.mFetchFlags) == 0))
             fetchContent(3, i);
           while (true)
           {
             if ((this.mFeedAdapter.isEmpty()) || (this.mLastFetchType != 7))
               break label224;
             hideProgress(7);
             if (this.mFeedAdapter.getCursor() == null)
               break label226;
             if (this.mFeedAdapter.getCursor().getCount() > this.mCursorPreviousPosts)
               break;
             fetchContent(i, i);
             return;
             if (this.mRepostsToggled)
             {
               fetchContent(3, false);
               this.mRepostsToggled = false;
             }
             else
             {
               hideProgress(3);
               if (!this.mFeedAdapter.isEmpty())
                 showSadface(false);
               else
                 showSadface(false);
             }
           }
         }
       }
       CrashUtil.logException(new VineException(), "Possible null cursor after swap.", new Object[0]);
       return;
     }
     while (this.mCurrentTab != 2);
     if (localCursor != null)
       localCursor.unregisterContentObserver(this.mChangeObserver);
     if (paramCursor != null)
       paramCursor.registerContentObserver(this.mChangeObserver);
     this.mFeedAdapter.swapCursor(paramCursor);
     if ((this.mFeedAdapter.isEmpty()) && ((0x4 & this.mFetchFlags) == 0))
       fetchContent(3, i);
     while ((!this.mFeedAdapter.isEmpty()) && (this.mLastFetchType == 7))
     {
       if (this.mFeedAdapter.getCursor().getCount() <= this.mCursorPreviousLikes)
         fetchContent(i, i);
       hideProgress(7);
       return;
       hideProgress(3);
       if (!this.mFeedAdapter.isEmpty())
         showSadface(false);
       else
         showSadface(false);
     }
   case 3:
   }
   if ((paramCursor != null) && (paramCursor.moveToFirst()))
     if (paramCursor.getInt(0) <= 0);
   for (this.mHideProfileReposts = i; ; this.mHideProfileReposts = false)
   {
     this.mSectionAdapter = null;
     setup();
     initProfile();
     return;
     int j = 0;
     break;
   }
 }