use of com.ferg.awfulapp.widget.PagePicker in project Awful.apk by Awful.
the class ThreadDisplayFragment method displayPagePicker.
/**
* Show the page picker dialog, and handle user input and navigation.
*/
private void displayPagePicker() {
Activity activity = getActivity();
if (activity == null) {
return;
}
new PagePicker(activity, getLastPage(), getPageNumber(), (button, resultValue) -> {
if (button == DialogInterface.BUTTON_POSITIVE) {
goToPage(resultValue);
}
}).show();
}
Aggregations