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

set default screen orientation value to "system"

This commit is contained in:
Nikolay Pultsin 2012-05-03 13:55:54 +01:00
parent a907bd4ac1
commit 5cc51a7fc0
2 changed files with 3 additions and 3 deletions

View file

@ -39,9 +39,9 @@ class SetScreenOrientationAction extends FBAndroidAction {
} else if (ZLibrary.SCREEN_ORIENTATION_LANDSCAPE.equals(optionValue)) {
orientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
} else if (ZLibrary.SCREEN_ORIENTATION_REVERSE_PORTRAIT.equals(optionValue)) {
orientation = 9;
orientation = 9; // ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT
} else if (ZLibrary.SCREEN_ORIENTATION_REVERSE_LANDSCAPE.equals(optionValue)) {
orientation = 8;
orientation = 8; // ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE
}
activity.setRequestedOrientation(orientation);
}

View file

@ -38,7 +38,7 @@ public abstract class ZLibrary {
public static final String SCREEN_ORIENTATION_REVERSE_PORTRAIT = "reversePortrait";
public static final String SCREEN_ORIENTATION_REVERSE_LANDSCAPE = "reverseLandscape";
public final ZLStringOption OrientationOption = new ZLStringOption("LookNFeel", "Orientation", "auto");
public final ZLStringOption OrientationOption = new ZLStringOption("LookNFeel", "Orientation", "system");
protected ZLibrary() {
ourImplementation = this;