mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
code simplification
This commit is contained in:
parent
80ef9dd290
commit
73b564f436
4 changed files with 14 additions and 13 deletions
|
@ -426,7 +426,7 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
this, scrollingScreen.Resource, "volumeKeys"
|
||||
) {
|
||||
{
|
||||
setChecked(fbReader.hasActionForKey(KeyEvent.KEYCODE_VOLUME_UP, false));
|
||||
setChecked(keyBindings.hasBinding(KeyEvent.KEYCODE_VOLUME_UP, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -463,7 +463,7 @@ public class PreferenceActivity extends ZLPreferenceActivity {
|
|||
}
|
||||
}
|
||||
}));
|
||||
volumeKeysPreferences.setEnabled(fbReader.hasActionForKey(KeyEvent.KEYCODE_VOLUME_UP, false));
|
||||
volumeKeysPreferences.setEnabled(keyBindings.hasBinding(KeyEvent.KEYCODE_VOLUME_UP, false));
|
||||
|
||||
scrollingScreen.addOption(pageTurningOptions.Animation, "animation");
|
||||
scrollingScreen.addPreference(new AnimationSpeedPreference(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue