mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Rename overlayNavigationSupported to unreadSearchingSupported.
This commit is contained in:
parent
b86fa09cfd
commit
1a59219c2d
4 changed files with 8 additions and 8 deletions
|
@ -27,7 +27,7 @@ public class GlobalSharedStoriesReading extends Reading {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean overlayNavigationSupported() {
|
||||
protected boolean unreadSearchingSupported() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ public class ReadStoriesReading extends Reading {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean overlayNavigationSupported() {
|
||||
protected boolean unreadSearchingSupported() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ public class SavedStoriesReading extends Reading {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean overlayNavigationSupported() {
|
||||
protected boolean unreadSearchingSupported() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue