mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-21 05:28:08 +00:00
Change notif logo
This commit is contained in:
parent
90b4a55293
commit
0fb32fb191
2 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue