1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

code simplification

This commit is contained in:
Nikolay Pultsin 2014-01-01 19:57:10 +00:00
parent 80ef9dd290
commit 73b564f436
4 changed files with 14 additions and 13 deletions

View file

@ -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(