From 87ae86e1be64614674de7db9b18c50419bafcb57 Mon Sep 17 00:00:00 2001 From: Sahaab Date: Sat, 12 Mar 2022 00:26:28 -0500 Subject: [PATCH] Added reverse portrait reader rotation --- .../eu/kanade/tachiyomi/ui/reader/setting/OrientationType.kt | 1 + .../eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/setting/OrientationType.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/setting/OrientationType.kt index fe0b81dd1..d5b1517d6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/setting/OrientationType.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/setting/OrientationType.kt @@ -10,6 +10,7 @@ enum class OrientationType(val prefValue: Int, val flag: Int, @StringRes val str DEFAULT(0, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, R.string.label_default, R.drawable.ic_screen_rotation_24dp, 0x00000000), FREE(1, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, R.string.rotation_free, R.drawable.ic_screen_rotation_24dp, 0x00000008), PORTRAIT(2, ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT, R.string.rotation_portrait, R.drawable.ic_stay_current_portrait_24dp, 0x00000010), + REVERSE_PORTRAIT(6, ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT, R.string.rotation_reverse_portrait, R.drawable.ic_stay_current_portrait_24dp, 0x00000030), LANDSCAPE(3, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE, R.string.rotation_landscape, R.drawable.ic_stay_current_landscape_24dp, 0x00000018), LOCKED_PORTRAIT(4, ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, R.string.rotation_force_portrait, R.drawable.ic_screen_lock_portrait_24dp, 0x00000020), LOCKED_LANDSCAPE(5, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, R.string.rotation_force_landscape, R.drawable.ic_screen_lock_landscape_24dp, 0x00000028); diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt index fb692ff22..5a8f75446 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsReaderController.kt @@ -78,6 +78,7 @@ class SettingsReaderController : SettingsController() { entriesRes = arrayOf( R.string.rotation_free, R.string.rotation_portrait, + R.string.rotation_reverse_portrait, R.string.rotation_landscape, R.string.rotation_force_portrait, R.string.rotation_force_landscape, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 608ad5cf1..8af2f80d7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -364,6 +364,7 @@ Rotation type Free Portrait + Reverse portrait Landscape Locked portrait Locked landscape