Rename overlayNavigationSupported to unreadSearchingSupported.

This commit is contained in:
Mark Anderson 2015-07-16 23:44:55 +01:00
parent b86fa09cfd
commit 1a59219c2d
4 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ public class GlobalSharedStoriesReading extends Reading {
}
@Override
protected boolean overlayNavigationSupported() {
protected boolean unreadSearchingSupported() {
return false;
}
}

View file

@ -27,7 +27,7 @@ public class ReadStoriesReading extends Reading {
}
@Override
protected boolean overlayNavigationSupported() {
protected boolean unreadSearchingSupported() {
return false;
}
}

View file

@ -771,7 +771,7 @@ public abstract class Reading extends NbActivity implements OnPageChangeListener
private void processVolumeKeyNavigationEvent(int keyCode) {
if ((keyCode == KeyEvent.KEYCODE_VOLUME_DOWN && volumeKeyNavigation == VolumeKeyNavigation.DOWN_NEXT) ||
(keyCode == KeyEvent.KEYCODE_VOLUME_UP && volumeKeyNavigation == VolumeKeyNavigation.UP_NEXT)) {
if (overlayNavigationSupported()) {
if (unreadSearchingSupported()) {
overlayRight(overlayRight);
} else {
int nextPosition = pager.getCurrentItem() + 1;
@ -780,7 +780,7 @@ public abstract class Reading extends NbActivity implements OnPageChangeListener
}
}
} else {
if (overlayNavigationSupported()) {
if (unreadSearchingSupported()) {
overlayLeft(overlayLeft);
} else {
int nextPosition = pager.getCurrentItem() - 1;
@ -792,10 +792,10 @@ public abstract class Reading extends NbActivity implements OnPageChangeListener
}
/**
* Global shared, saved and read stories don't have overlays enabled for
* navigating between stories so we need to fall back to swipe left/right behaviour.
* Global shared, saved and read stories don't support searching for unreads so we need to
* fall back to swipe left/right behaviour.
*/
protected boolean overlayNavigationSupported() {
protected boolean unreadSearchingSupported() {
return true;
}

View file

@ -29,7 +29,7 @@ public class SavedStoriesReading extends Reading {
}
@Override
protected boolean overlayNavigationSupported() {
protected boolean unreadSearchingSupported() {
return false;
}
}