From 714655da4f43ec550ef1856a25748bb9c16e7c07 Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Fri, 26 Apr 2024 00:57:10 +0200 Subject: [PATCH] Misc fixes --- .../oxygencustomizer/xposed/hooks/launcher/Launcher.java | 2 ++ .../xposed/hooks/systemui/statusbar/HeaderClock.java | 6 +++--- app/src/main/res/xml/qs_header_clock_prefs.xml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/launcher/Launcher.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/launcher/Launcher.java index c0a859745..589732bda 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/launcher/Launcher.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/launcher/Launcher.java @@ -135,6 +135,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { v.setVisibility(View.GONE); if (mRemoveFolderPagination) param.setResult(null); break; + default: + break; } } }); diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/HeaderClock.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/HeaderClock.java index 0177a8aaa..70e7c4b71 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/HeaderClock.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/HeaderClock.java @@ -101,10 +101,10 @@ public class HeaderClock extends XposedMods { private TextView mOplusCarrier = null; // Custom Clock Prefs - private boolean showHeaderClock; - private int clockStyle; + private boolean showHeaderClock = false; + private int clockStyle = 0; - private boolean centeredClockView; + private boolean centeredClockView = false; // Stock Clock Prefs private int stockClockRedStyle; diff --git a/app/src/main/res/xml/qs_header_clock_prefs.xml b/app/src/main/res/xml/qs_header_clock_prefs.xml index 4c48bb507..82c40e92c 100644 --- a/app/src/main/res/xml/qs_header_clock_prefs.xml +++ b/app/src/main/res/xml/qs_header_clock_prefs.xml @@ -4,7 +4,7 @@ xmlns:search="http://schemas.android.com/apk/it.dhd.oxygencustomizer.customprefs.preferencesearch">