From fde6b7af4f9c7184ae1c55e1b7953619bd8e26b9 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 13 Mar 2021 15:47:43 -0500 Subject: [PATCH] Disable sensor when using force orientation (closes #4618) --- .../java/eu/kanade/tachiyomi/ui/reader/OrientationType.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/OrientationType.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/OrientationType.kt index 9b7cd125c..c22042f41 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/OrientationType.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/OrientationType.kt @@ -12,8 +12,8 @@ enum class OrientationType(val prefValue: Int, val flag: Int, @StringRes val str FREE(1, ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, R.string.rotation_free, R.drawable.ic_screen_rotation_24dp), LOCKED_PORTRAIT(2, ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT, R.string.rotation_lock, R.drawable.ic_screen_lock_rotation_24dp), LOCKED_LANDSCAPE(2, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE, R.string.rotation_lock, R.drawable.ic_screen_lock_rotation_24dp), - PORTRAIT(3, ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT, R.string.rotation_force_portrait, R.drawable.ic_screen_lock_portrait_24dp), - LANDSCAPE(4, ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE, R.string.rotation_force_landscape, R.drawable.ic_screen_lock_landscape_24dp); + PORTRAIT(3, ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, R.string.rotation_force_portrait, R.drawable.ic_screen_lock_portrait_24dp), + LANDSCAPE(4, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, R.string.rotation_force_landscape, R.drawable.ic_screen_lock_landscape_24dp); companion object { fun fromPreference(preference: Int, resources: Resources): OrientationType = when (preference) {