Skip to content

Commit

Permalink
Removed useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed May 18, 2024
1 parent fdc4675 commit f977b08
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);

Expand All @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f977b08

Please sign in to comment.