From e7afffea1e50bc84e16f9d981ac7b17ef5557ef6 Mon Sep 17 00:00:00 2001 From: Raya Mahardika <94042378+rktdnt@users.noreply.github.com> Date: Sun, 4 Oct 2026 03:09:41 +0000 Subject: [PATCH] MiuiCamera: Fix top actionbar header and enable notch layout - Inherit ThemeCamera and ThemeModeEditor from Theme.DeviceDefault.NoActionBar.Fullscreen - Add requestWindowFeature(Window.FEATURE_NO_TITLE) in Camera.onCreate - Configure shortEdges windowLayoutInDisplayCutoutMode - Force Util.isNotchDevice to true on dipper to properly calculate top bar insets Change-Id: Ieb7f598cebb7797821b9b2f85e7b520da7500360 --- .../system/priv-app/MiuiCamera/MiuiCamera.apk | 4 +- ...x-actionbar-and-portrait-bokeh-crash.patch | 59 ++++++++++++++----- 2 files changed, 46 insertions(+), 17 deletions(-) diff --git a/dipper/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk b/dipper/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk index bec46f5..9302e3c 100644 --- a/dipper/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk +++ b/dipper/proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2a78995b2e95ebd96237cd57785521c7d515510f122922633e9bdd2a0d9b475b -size 41018025 +oid sha256:4c9473cbd96dfc630d3b2a28f71f883f5309cc31748e521b6c87d2a7d6e95344 +size 57067624 diff --git a/patches/0006-Fix-actionbar-and-portrait-bokeh-crash.patch b/patches/0006-Fix-actionbar-and-portrait-bokeh-crash.patch index 9fe6c87..15e98b1 100644 --- a/patches/0006-Fix-actionbar-and-portrait-bokeh-crash.patch +++ b/patches/0006-Fix-actionbar-and-portrait-bokeh-crash.patch @@ -1,4 +1,4 @@ -From 7cd190cf86987c59ac188dcc8acb86c355a08110 Mon Sep 17 00:00:00 2001 +From 2adae50f252ebfe479b0bdcdd59e5b5c34404cb8 Mon Sep 17 00:00:00 2001 From: buxx Date: Sat, 3 Oct 2026 16:28:45 +0000 Subject: [PATCH] 0006 Fix actionbar and portrait bokeh crash @@ -6,11 +6,12 @@ Subject: [PATCH] 0006 Fix actionbar and portrait bokeh crash Change-Id: Idaee29a78593a8fb7a1f7080e4abfbb4e2ba3ebe --- AndroidManifest.xml | 8 +++--- - res/values/styles.xml | 10 +++++-- + res/values/styles.xml | 14 ++++++++-- .../com/android/camera/ActivityBase.smali | 4 +++ - .../com/android/camera/Camera.smali | 9 +++++++ + .../com/android/camera/Camera.smali | 13 +++++++++ + smali_classes5/com/android/camera/Util.smali | 2 ++ .../compat/MiCameraCompatBaseImpl.smali | 27 ------------------- - 5 files changed, 25 insertions(+), 33 deletions(-) + 6 files changed, 35 insertions(+), 33 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4b54e739..de8aedb8 100644 @@ -20,8 +21,8 @@ index 4b54e739..de8aedb8 100644 -- -+ +- ++ @@ -52,7 +53,7 @@ index 4b54e739..de8aedb8 100644 diff --git a/res/values/styles.xml b/res/values/styles.xml -index 82b7c524..ac65e0d9 100644 +index 82b7c524..e2f325a4 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -1651,7 +1651,7 @@ @@ -60,15 +61,17 @@ index 82b7c524..ac65e0d9 100644 @style/V11.PreferenceThemeOverlay.Light -