Add option to change double tap animation speed in the reader (#974)
* Add option to change double tap animation speed in the reader * address requests from review
This commit is contained in:
committed by
Bram van de Kerkhof
parent
a65a71df5d
commit
f88dd28c51
@@ -11,6 +11,8 @@ object PreferenceKeys {
|
||||
|
||||
const val enableTransitions = "pref_enable_transitions_key"
|
||||
|
||||
const val doubleTapAnimationSpeed = "pref_double_tap_anim_speed"
|
||||
|
||||
const val showPageNumber = "pref_show_page_number_key"
|
||||
|
||||
const val fullscreen = "fullscreen"
|
||||
|
||||
@@ -39,6 +39,8 @@ class PreferencesHelper(val context: Context) {
|
||||
|
||||
fun pageTransitions() = rxPrefs.getBoolean(Keys.enableTransitions, true)
|
||||
|
||||
fun doubleTapAnimSpeed() = rxPrefs.getInteger(Keys.doubleTapAnimationSpeed, 500)
|
||||
|
||||
fun showPageNumber() = rxPrefs.getBoolean(Keys.showPageNumber, true)
|
||||
|
||||
fun fullscreen() = rxPrefs.getBoolean(Keys.fullscreen, true)
|
||||
|
||||
Reference in New Issue
Block a user