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

GO_BACK action is not implemented yet

This commit is contained in:
Nikolay Pultsin 2011-03-25 22:58:10 +00:00
parent 9ea10c77e1
commit 9b225d9682

View file

@ -390,13 +390,15 @@ public class PreferenceActivity extends ZLPreferenceActivity {
cancelMenuScreen.addOption(fbReader.ShowPositionsInCancelMenuOption, "positions");
final ZLKeyBindings bindings = fbReader.keyBindings();
final String[] backKeyActions =
{ ActionCode.EXIT, ActionCode.GO_BACK, ActionCode.SHOW_CANCEL_MENU };
//{ ActionCode.EXIT, ActionCode.GO_BACK, ActionCode.SHOW_CANCEL_MENU };
{ ActionCode.EXIT, ActionCode.SHOW_CANCEL_MENU };
cancelMenuScreen.addPreference(new ZLStringChoicePreference(
this, cancelMenuScreen.Resource, "backKeyAction",
bindings.getOption("<Back>", false), backKeyActions
));
final String[] backKeyLongPressActions =
{ ActionCode.EXIT, ActionCode.GO_BACK, ActionCode.SHOW_CANCEL_MENU, FBReaderApp.NoAction };
//{ ActionCode.EXIT, ActionCode.GO_BACK, ActionCode.SHOW_CANCEL_MENU, FBReaderApp.NoAction };
{ ActionCode.EXIT, ActionCode.SHOW_CANCEL_MENU, FBReaderApp.NoAction };
cancelMenuScreen.addPreference(new ZLStringChoicePreference(
this, cancelMenuScreen.Resource, "backKeyLongPressAction",
bindings.getOption("<Back>", true), backKeyLongPressActions