diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-06-17 04:35:37 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-06-17 04:35:37 +0000 |
commit | 92a1c1d1aecc6814a49f490f97fdbb03530bba3a (patch) | |
tree | 40af2043683918435f479803337efc5e547337fc | |
parent | 18ecb626056de308bed0eb79a88968b617663005 (diff) | |
download | infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.tar infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.tar.gz infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.tar.bz2 infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.tar.lz infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.tar.xz infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.tar.zst infinity-for-reddit-92a1c1d1aecc6814a49f490f97fdbb03530bba3a.zip |
Fix Material You themeing issue.
2 files changed, 3 insertions, 8 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java b/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java index b2e64fb9..8028cdfc 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/broadcastreceivers/WallpaperChangeReceiver.java @@ -3,19 +3,13 @@ package ml.docilealligator.infinityforreddit.broadcastreceivers; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; -import android.util.Log; - -import java.util.Objects; import ml.docilealligator.infinityforreddit.services.MaterialYouService; public class WallpaperChangeReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { - Log.i("asfasdf", "s " + intent.getAction()); - if (Objects.equals(intent.getAction(), "android.intent.action.WALLPAPER_CHANGED")) { - Intent materialYouIntent = new Intent(context, MaterialYouService.class); - context.startService(materialYouIntent); - } + Intent materialYouIntent = new Intent(context, MaterialYouService.class); + context.startService(materialYouIntent); } } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java index 51199bea..a9cfc226 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/MaterialYouUtils.java @@ -45,6 +45,7 @@ public class MaterialYouUtils { .putInt(CustomThemeSharedPreferencesUtils.COLOR_PRIMARY_LIGHT_THEME, colorPrimaryInt) .putInt(CustomThemeSharedPreferencesUtils.BACKGROUND_COLOR, backgroundColor) .putInt(CustomThemeSharedPreferencesUtils.CARD_VIEW_BACKGROUND_COLOR, cardViewBackgroundColor) + .putInt(CustomThemeSharedPreferencesUtils.COMMENT_BACKGROUND_COLOR, cardViewBackgroundColor) .putInt(CustomThemeSharedPreferencesUtils.BOTTOM_APP_BAR_BACKGROUND_COLOR, colorPrimaryInt) .putInt(CustomThemeSharedPreferencesUtils.NAV_BAR_COLOR, colorPrimaryInt) .putInt(CustomThemeSharedPreferencesUtils.PRIMARY_TEXT_COLOR, backgroundColorAppropriateTextColor) |