Skip to content

Commit 687b18f

Browse files
author
Vadim Lopatin
committed
set default orientation to Portrait
1 parent d84b5a5 commit 687b18f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/org/coolreader/crengine/BaseActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected void onCreate(Bundle savedInstanceState)
185185
setScreenBacklightDuration(props.getInt(ReaderView.PROP_APP_SCREEN_BACKLIGHT_LOCK, 3));
186186

187187
setFullscreen( props.getBool(ReaderView.PROP_APP_FULLSCREEN, DeviceInfo.EINK_SCREEN));
188-
int orientation = props.getInt(ReaderView.PROP_APP_SCREEN_ORIENTATION, 5); //(DeviceInfo.EINK_SCREEN?0:4)
188+
int orientation = props.getInt(ReaderView.PROP_APP_SCREEN_ORIENTATION, 0); //(DeviceInfo.EINK_SCREEN?0:4)
189189
if (orientation < 0 || orientation > 5)
190190
orientation = 5;
191191
setScreenOrientation(orientation);
@@ -1696,7 +1696,7 @@ public Properties loadSettings(BaseActivity activity, File file) {
16961696
props.applyDefault(ReaderView.PROP_APP_GESTURE_PAGE_FLIPPING, "1");
16971697
props.applyDefault(ReaderView.PROP_APP_SHOW_COVERPAGES, "1");
16981698
props.applyDefault(ReaderView.PROP_APP_COVERPAGE_SIZE, "1");
1699-
props.applyDefault(ReaderView.PROP_APP_SCREEN_ORIENTATION, DeviceInfo.EINK_SCREEN ? "0" : "4"); // "0"
1699+
props.applyDefault(ReaderView.PROP_APP_SCREEN_ORIENTATION, "0"); // "0"
17001700
props.applyDefault(ReaderView.PROP_CONTROLS_ENABLE_VOLUME_KEYS, "1");
17011701
props.applyDefault(ReaderView.PROP_APP_TAP_ZONE_HILIGHT, "0");
17021702
props.applyDefault(ReaderView.PROP_APP_BOOK_SORT_ORDER, FileInfo.DEF_SORT_ORDER.name());

0 commit comments

Comments
 (0)