Fix black theme when customizing color schema (#1613)

Fix #1612
This commit is contained in:
LoveSy 2022-02-03 12:13:51 +08:00 committed by GitHub
parent b81caac913
commit a7955ab7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -103,10 +103,10 @@ public class BaseActivity extends MaterialActivity {
@Override
public void onApplyUserThemeResource(@NonNull Resources.Theme theme, boolean isDecorView) {
theme.applyStyle(ThemeUtil.getNightThemeStyleRes(this), true);
if (!ThemeUtil.isSystemAccent()) {
theme.applyStyle(ThemeUtil.getColorThemeStyleRes(), true);
}
theme.applyStyle(ThemeUtil.getNightThemeStyleRes(this), true);
}
@Override