Ejemplo n.º 1
0
 public void setSelection(View selected) {
   if (selected != null) {
     clearSelection();
     mSelection = selected;
     promoteSelection();
     if (mStoryModeEnabled) {
       fadeOutBackground(mSelection);
     }
   }
 }
Ejemplo n.º 2
0
 public void selectPrevious() {
   if (mStoryModeEnabled) {
     log("selectPrevious");
     if (hasSelection() && mOnDeck[PREV] != null) {
       placeOnDeck(mSelection, NEXT);
       mSelection = mOnDeck[PREV];
       mOnDeck[PREV] = null;
       promoteSelection();
     }
   } else {
     clearSelection();
   }
 }
Ejemplo n.º 3
0
 public void selectNext() {
   if (mStoryModeEnabled) {
     log("selectNext");
     if (hasSelection() && mOnDeck[NEXT] != null) {
       placeOnDeck(mSelection, PREV);
       mSelection = mOnDeck[NEXT];
       mOnDeck[NEXT] = null;
       promoteSelection();
     }
   } else {
     clearSelection();
   }
 }