Пример #1
0
 private void promoteSelection() {
   if (hasSelection()) {
     scheduleSelectionReaper(mMaxSelectionTime);
     mSelection.animate().cancel();
     mSelection.setAlpha(1f);
     moveToTopOfPile(mSelection);
     pickUp(mSelection);
     if (mStoryModeEnabled) {
       for (int slot = 0; slot < mOnDeck.length; slot++) {
         if (mLoadOnDeckTasks[slot] != null
             && mLoadOnDeckTasks[slot].getStatus() != AsyncTask.Status.FINISHED) {
           mLoadOnDeckTasks[slot].cancel(true);
         }
         if (mOnDeck[slot] == null) {
           mLoadOnDeckTasks[slot] = new LoadNaturalSiblingTask(slot);
           mLoadOnDeckTasks[slot].execute(mSelection);
         }
       }
     }
   }
 }
Пример #2
0
 public void refreshSelection() {
   scheduleSelectionReaper(mMaxFocusTime);
 }