diff --git a/Patches/LineageOS-20.0/android_packages_apps_Aperture/0001-IS.patch b/Patches/LineageOS-20.0/android_packages_apps_Aperture/0001-IS.patch new file mode 100644 index 00000000..2ace82d4 --- /dev/null +++ b/Patches/LineageOS-20.0/android_packages_apps_Aperture/0001-IS.patch @@ -0,0 +1,66 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tad +Date: Sun, 8 Jan 2023 21:16:28 -0500 +Subject: [PATCH] Enable stabilization by default + +Change-Id: I77417dd0877f8ea765b1fd70ac824c743d3ed3a0 +Signed-off-by: Tad +--- + .../java/org/lineageos/aperture/SharedPreferencesExt.kt | 6 +++--- + app/src/main/res/xml/root_preferences.xml | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/app/src/main/java/org/lineageos/aperture/SharedPreferencesExt.kt b/app/src/main/java/org/lineageos/aperture/SharedPreferencesExt.kt +index accf276..c3ac511 100644 +--- a/app/src/main/java/org/lineageos/aperture/SharedPreferencesExt.kt ++++ b/app/src/main/java/org/lineageos/aperture/SharedPreferencesExt.kt +@@ -331,7 +331,7 @@ internal var SharedPreferences.lastSavedUri: Uri? + // Image stabilization + private const val IMAGE_STABILIZATION_KEY = "image_stabilization" + internal val SharedPreferences.imageStabilizationMode: StabilizationMode +- get() = if (getBoolean(IMAGE_STABILIZATION_KEY, false)) { ++ get() = if (getBoolean(IMAGE_STABILIZATION_KEY, true)) { + StabilizationMode.OPTICAL + } else { + StabilizationMode.OFF +@@ -343,8 +343,8 @@ private const val VIDEO_STABILIZATION_OIS_KEY = "video_stabilization_ois" + private const val VIDEO_STABILIZATION_PREVIEW_KEY = "video_stabilization_preview" + internal val SharedPreferences.videoStabilizationMode: StabilizationMode + get() { +- val videoStabilization = getBoolean(VIDEO_STABILIZATION_KEY, false) +- val videoStabilizationOis = getBoolean(VIDEO_STABILIZATION_OIS_KEY, false) ++ val videoStabilization = getBoolean(VIDEO_STABILIZATION_KEY, true) ++ val videoStabilizationOis = getBoolean(VIDEO_STABILIZATION_OIS_KEY, true) + val videoStabilizationPreview = getBoolean(VIDEO_STABILIZATION_PREVIEW_KEY, false) + + return when { +diff --git a/app/src/main/res/xml/root_preferences.xml b/app/src/main/res/xml/root_preferences.xml +index 96eb553..507ceb8 100644 +--- a/app/src/main/res/xml/root_preferences.xml ++++ b/app/src/main/res/xml/root_preferences.xml +@@ -53,7 +53,7 @@ + app:useSimpleSummaryProvider="true" /> + + + + + +