Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 6be626d

Browse files
authored
Merge pull request #2492 from dkanada/notifications
modify notification icon
2 parents b3bd88a + 9303422 commit 6be626d

25 files changed

+7
-6
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Features:
55
-
66

77
Improvements:
8+
- Update settings icon and transparent logo for notifications and navigation drawer (#2492)
89
- URL previews are no longer requested from the server when displaying URL previews is disabled (PR #2514)
910

1011
Other changes:

vector/src/main/java/im/vector/notifications/NotificationUtils.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ object NotificationUtils {
196196
.setWhen(System.currentTimeMillis())
197197
.setContentTitle(context.getString(R.string.riot_app_name))
198198
.setContentText(context.getString(subTitleResId))
199-
.setSmallIcon(R.drawable.permanent_notification_transparent)
199+
.setSmallIcon(R.drawable.logo_transparent)
200200
.setContentIntent(pi)
201201

202202
// hide the notification from the status bar
@@ -512,7 +512,7 @@ object NotificationUtils {
512512
if (!roomsNotifications.mIsInvitationEvent) {
513513
try {
514514
val wearableExtender = NotificationCompat.WearableExtender()
515-
val action = NotificationCompat.Action.Builder(R.drawable.message_notification_transparent,
515+
val action = NotificationCompat.Action.Builder(R.drawable.logo_transparent,
516516
roomsNotifications.mWearableMessage,
517517
stackBuilderTap.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT))
518518
.build()
@@ -670,7 +670,7 @@ object NotificationUtils {
670670
.setWhen(roomsNotifications.mContentTs)
671671
.setContentTitle(ensureTitleNotEmpty(context, roomsNotifications.mContentTitle))
672672
.setContentText(roomsNotifications.mContentText)
673-
.setSmallIcon(R.drawable.message_notification_transparent)
673+
.setSmallIcon(R.drawable.logo_transparent)
674674
.setGroup(context.getString(R.string.riot_app_name))
675675
.setGroupSummary(true)
676676
.setDeleteIntent(PendingIntent.getBroadcast(context.applicationContext,
@@ -716,7 +716,7 @@ object NotificationUtils {
716716
.setWhen(System.currentTimeMillis())
717717
.setContentTitle(context.getString(R.string.riot_app_name))
718718
.setContentText(messagesStrings[0])
719-
.setSmallIcon(R.drawable.message_notification_transparent)
719+
.setSmallIcon(R.drawable.logo_transparent)
720720
.setGroup(context.getString(R.string.riot_app_name))
721721
.setGroupSummary(true)
722722

726 Bytes
Loading
Loading
Binary file not shown.
Binary file not shown.
538 Bytes
Loading
Loading
Binary file not shown.
Binary file not shown.
1018 Bytes
Loading
Loading
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Loading
Loading
Binary file not shown.
Binary file not shown.

vector/src/main/res/menu/vector_choose_sticker.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<item
66
android:id="@+id/menu_settings"
7-
android:icon="@drawable/icons_settings"
7+
android:icon="@drawable/ic_settings"
88
android:title="@string/room_sliding_menu_settings"
99
app:showAsAction="always" />
1010

vector/src/main/res/menu/vector_home_sliding_menu.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<item
1111
android:id="@+id/sliding_menu_settings"
12-
android:icon="@drawable/icons_settings"
12+
android:icon="@drawable/ic_settings"
1313
android:title="@string/room_sliding_menu_settings"/>
1414

1515
<item

0 commit comments

Comments
 (0)