Skip to content

Commit

Permalink
Removed some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Jun 16, 2024
1 parent fbd00cf commit 799649e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public ThemeEnabler(Context context) {
@Override
public void updatePrefs(String... Key) {
if (Xprefs == null) return;
log("ThemeEnabler Updating Prefs " + Xprefs.getInt("UiStylesThemes", 0));
for (int i = 0; i<Xprefs.getInt("UiStylesThemes", 0); i++) {
if (Xprefs.getBoolean("OxygenCustomizerComponentTH" + (i+1) + ".overlay", false)) {
themeNum = (i+1);
Expand All @@ -44,15 +43,13 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Th
hookAllMethods(ScrimController, "updateThemeColors", new XC_MethodHook() {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
log("ThemeEnabler ScrimController updateThemeColors");
enableTheme();
}
});

}

private void enableTheme() {
log("ThemeEnabler Enabling Themes " + themeNum);
XPLauncher.enqueueProxyCommand(proxy -> proxy.applyTheme("OxygenCustomizerComponentTH" + themeNum + ".overlay"));
}

Expand Down

0 comments on commit 799649e

Please sign in to comment.