diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-27 09:16:31 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-27 09:16:31 +0000 |
commit | 995701174de54219c528993674cfa92995c03d17 (patch) | |
tree | 8ba16a3866f864cb4f814cbf72bbd63a9179c19d /app/src/main/java/ml | |
parent | 3b0eb15646cc9ac60a7661cf25d5a1a528bae404 (diff) | |
download | infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.tar infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.tar.gz infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.tar.bz2 infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.tar.lz infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.tar.xz infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.tar.zst infinity-for-reddit-995701174de54219c528993674cfa92995c03d17.zip |
Delete wrong credit. Change the notification icon and color.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/NotificationUtils.java | 6 | ||||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/SharedPreferencesUtils.java | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/NotificationUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/NotificationUtils.java index 7d09608f..f9e4bdee 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/NotificationUtils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/NotificationUtils.java @@ -29,7 +29,8 @@ class NotificationUtils { return new NotificationCompat.Builder(context.getApplicationContext(), channelId) .setContentTitle(title) .setContentText(content) - .setSmallIcon(R.drawable.ic_launcher_foreground) + .setSmallIcon(R.drawable.ic_notification) + .setColor(context.getResources().getColor(R.color.notificationIconColor)) .setStyle(new NotificationCompat.BigTextStyle() .setSummaryText(summary) .bigText(content)) @@ -49,7 +50,8 @@ class NotificationUtils { .setContentTitle(title) //set content text to support devices running API level < 24 .setContentText(content) - .setSmallIcon(R.drawable.ic_launcher_foreground) + .setSmallIcon(R.drawable.ic_notification) + .setColor(context.getResources().getColor(R.color.notificationIconColor)) .setGroup(group) .setGroupSummary(true) .setAutoCancel(true); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/SharedPreferencesUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/SharedPreferencesUtils.java index d54e83cb..fd7dc27f 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/SharedPreferencesUtils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/SharedPreferencesUtils.java @@ -13,7 +13,6 @@ public class SharedPreferencesUtils { public static final String ICON_FOREGROUND_KEY = "icon_foreground"; public static final String ICON_BACKGROUND_KEY = "icon_background"; public static final String ERROR_IMAGE_KEY = "error_image"; - public static final String SUBREDDIT_AND_USER_PLACEHOLDER_KEY = "subreddit_and_user_profile_placeholder"; public static final String GILDED_ICON_KEY = "gilded_icon"; public static final String CROSSPOST_ICON_KEY = "crosspost_icon"; public static final String THUMBTACK_ICON_KEY = "thumbtack_icon"; |