From f977b08328f4ee87e55e068fb32228df9e68fdf3 Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Sat, 18 May 2024 14:25:56 +0200 Subject: [PATCH] Removed useless logs --- .../xposed/hooks/launcher/Launcher.java | 4 ---- .../statusbar/BatteryStyleManager.java | 18 ------------------ 2 files changed, 22 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 3f4c50f39..362e041a9 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 @@ -41,7 +41,6 @@ public class Launcher extends XposedMods { private int mFolderRows, mFolderColumns, mDrawerColumns; private boolean mFolderRearrange = false, mFolderPreview = false, mDrawerRearrange = false, mOpenAppDetails; - private boolean mRemoveShortcut = false, mRemoveClone = false; private boolean mRemoveFolderPagination = false, mRemoveHomePagination = false; public Launcher(Context context) { @@ -59,8 +58,6 @@ public void updatePrefs(String... Key) { mFolderPreview = Xprefs.getBoolean("rearrange_preview", true); mDrawerRearrange = Xprefs.getBoolean("rearrange_drawer", true); mOpenAppDetails = Xprefs.getBoolean("launcher_open_app_details", false); - mRemoveShortcut = Xprefs.getBoolean("remove_shortcut_badge_title", false); - mRemoveClone = Xprefs.getBoolean("remove_clone_badge", false); mRemoveFolderPagination = Xprefs.getBoolean("remove_folder_pagination", false); mRemoveHomePagination = Xprefs.getBoolean("remove_home_pagination", false); @@ -74,7 +71,6 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Th @Override protected void afterHookedMethod(XC_MethodHook.MethodHookParam param) throws Throwable { - log("InvariantDeviceProfile$GridOption constructor called"); if (mFolderRearrange) { XposedHelpers.setIntField(param.thisObject, "numFolderColumns", mFolderColumns); XposedHelpers.setIntField(param.thisObject, "numFolderRows", mFolderRows); diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java index 44b816722..a6550fa2f 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java @@ -831,24 +831,6 @@ private void updateFlipper(Object thisObject) { batteryView.setLayoutDirection(mSwapPercentage ? View.LAYOUT_DIRECTION_RTL : View.LAYOUT_DIRECTION_LTR); } - private void notifyUpdate() { - new Thread(() -> { - try { - while (updating) { - Thread.currentThread().wait(500); - } - updating = true; - ShellUtils.execCommand("settings put system display_battery_style 2", true); - Thread.sleep(500); - ShellUtils.execCommand("settings put system display_battery_style 3", true); - - Thread.sleep(500); - updating = false; - } catch (Exception ignored) { - } - }).start(); - } - private void updateBatteryRotation(View mBatteryIconView) { mBatteryIconView.setRotation(!DefaultLandscapeBatteryEnabled && mBatteryLayoutReverse ? 180 : mBatteryRotation); }