Skip to content

Commit 5e8060d

Browse files
committed
Fix bug in Custom theme
Signed-off-by: Dev4Mod <[email protected]>
1 parent c0afdd0 commit 5e8060d

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/wmods/wppenhacer/xposed/features/customization

1 file changed

+1
-1
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/features/customization/CustomTheme.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private void hookColors() throws Exception {
166166
backgroundColor = backgroundColorInt == 0 ? "0" : IColors.toString(backgroundColorInt);
167167
}
168168

169-
if (prefs.getBoolean("changecolor", false) || Objects.equals(properties.getProperty("change_colors"), "true")) {
169+
if (prefs.getBoolean("changecolor", false) || (Objects.equals(properties.getProperty("change_colors"), "true") && prefs.getBoolean("custom_filters", false))) {
170170
for (var c : IColors.colors.keySet()) {
171171
if (!primaryColor.equals("0") && DesignUtils.isValidColor(primaryColor)) {
172172
primaryColor = primaryColor.length() == 9 ? primaryColor : "#ff" + primaryColor.substring(1);

0 commit comments

Comments
 (0)