mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Comment on the setColor usage
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
e20e3914be
commit
59e9da8984
@ -145,6 +145,8 @@ public class MagicFirebaseMessagingService extends FirebaseMessagingService {
|
|||||||
.setAutoCancel(true);
|
.setAutoCancel(true);
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
|
// This method should exist since API 21, but some phones don't have it
|
||||||
|
// So as a safeguard, we don't use it until 23
|
||||||
notificationBuilder.setColor(getResources().getColor(R.color.colorPrimary));
|
notificationBuilder.setColor(getResources().getColor(R.color.colorPrimary));
|
||||||
} else {
|
} else {
|
||||||
BitmapDrawable tintedDrawable = (BitmapDrawable) ColorUtils.getTintedDrawable(getResources(), smallIcon,
|
BitmapDrawable tintedDrawable = (BitmapDrawable) ColorUtils.getTintedDrawable(getResources(), smallIcon,
|
||||||
|
Loading…
Reference in New Issue
Block a user