From 0fb32fb191988f6af1d3ac7666bece32b1c76e38 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Tue, 21 Aug 2018 09:31:19 +0200 Subject: [PATCH] Change notif logo --- src/android/org/linphone/LinphoneService.java | 10 +++++----- .../org/linphone/compatibility/ApiTwentySixPlus.java | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/android/org/linphone/LinphoneService.java b/src/android/org/linphone/LinphoneService.java index 002c7e78e..0666ea70e 100644 --- a/src/android/org/linphone/LinphoneService.java +++ b/src/android/org/linphone/LinphoneService.java @@ -561,7 +561,7 @@ public final class LinphoneService extends Service { try { bm = MediaStore.Images.Media.getBitmap(getContentResolver(), pictureUri); } catch (Exception e) { - bm = BitmapFactory.decodeResource(getResources(), R.drawable.avatar); + bm = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_small_secure1); } String name = address.getDisplayName() == null ? address.getUsername() : address.getDisplayName(); Intent notifIntent = new Intent(this, incomingReceivedActivity); @@ -639,10 +639,10 @@ public final class LinphoneService extends Service { try { bm = MediaStore.Images.Media.getBitmap(getContentResolver(), fromPictureUri); } catch (Exception e) { - bm = BitmapFactory.decodeResource(getResources(), R.drawable.topbar_avatar); + bm = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_group_small_secure1); } } else { - bm = BitmapFactory.decodeResource(getResources(), R.drawable.topbar_avatar); + bm = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_group_small_secure1); } Notification notification = Compatibility.createMessageNotification(getApplicationContext(), notif.numberOfUnreadMessage, subject, getString(R.string.group_chat_notif).replace("%1", fromName).replace("%2", message), bm, notifContentIntent); @@ -677,10 +677,10 @@ public final class LinphoneService extends Service { try { bm = MediaStore.Images.Media.getBitmap(getContentResolver(), fromPictureUri); } catch (Exception e) { - bm = BitmapFactory.decodeResource(getResources(), R.drawable.topbar_avatar); + bm = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_small_secure1); } } else { - bm = BitmapFactory.decodeResource(getResources(), R.drawable.topbar_avatar); + bm = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_small_secure1); } Notification notification = Compatibility.createMessageNotification(getApplicationContext(), notif.numberOfUnreadMessage, fromName, message, bm, notifContentIntent); diff --git a/src/android/org/linphone/compatibility/ApiTwentySixPlus.java b/src/android/org/linphone/compatibility/ApiTwentySixPlus.java index 0ed80b882..fae08a92a 100644 --- a/src/android/org/linphone/compatibility/ApiTwentySixPlus.java +++ b/src/android/org/linphone/compatibility/ApiTwentySixPlus.java @@ -77,7 +77,7 @@ public class ApiTwentySixPlus { notif = new Notification.Builder(context, context.getString(R.string.notification_channel_id)) .setContentTitle(title) .setContentText(msg) - .setSmallIcon(R.drawable.topbar_chat_notification) + .setSmallIcon(R.drawable.logo_secure_phone_small) .setAutoCancel(true) .setContentIntent(intent) .setDefaults(Notification.DEFAULT_SOUND @@ -148,7 +148,7 @@ public class ApiTwentySixPlus { Notification notif = new Notification.Builder(context, context.getString(R.string.notification_channel_id)) .setContentTitle(title) .setContentText(text) - .setSmallIcon(R.drawable.call_status_missed) + .setSmallIcon(R.drawable.logo_secure_phone_small) .setAutoCancel(true) .setContentIntent(intent) .setDefaults(Notification.DEFAULT_SOUND @@ -165,7 +165,7 @@ public class ApiTwentySixPlus { Notification notif = new Notification.Builder(context, context.getString(R.string.notification_channel_id)) .setContentTitle(title) .setContentText(text) - .setSmallIcon(R.drawable.linphone_logo) + .setSmallIcon(R.drawable.logo_secure_phone_small) .setAutoCancel(true) .setContentIntent(intent) .setDefaults(Notification.DEFAULT_SOUND