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

modify notification icon #2492

Merged
merged 3 commits into from
Aug 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Features:
-

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

Other changes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ object NotificationUtils {
.setWhen(System.currentTimeMillis())
.setContentTitle(context.getString(R.string.riot_app_name))
.setContentText(context.getString(subTitleResId))
.setSmallIcon(R.drawable.permanent_notification_transparent)
.setSmallIcon(R.drawable.logo_transparent)
.setContentIntent(pi)

// hide the notification from the status bar
Expand Down Expand Up @@ -512,7 +512,7 @@ object NotificationUtils {
if (!roomsNotifications.mIsInvitationEvent) {
try {
val wearableExtender = NotificationCompat.WearableExtender()
val action = NotificationCompat.Action.Builder(R.drawable.message_notification_transparent,
val action = NotificationCompat.Action.Builder(R.drawable.logo_transparent,
roomsNotifications.mWearableMessage,
stackBuilderTap.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT))
.build()
Expand Down Expand Up @@ -670,7 +670,7 @@ object NotificationUtils {
.setWhen(roomsNotifications.mContentTs)
.setContentTitle(ensureTitleNotEmpty(context, roomsNotifications.mContentTitle))
.setContentText(roomsNotifications.mContentText)
.setSmallIcon(R.drawable.message_notification_transparent)
.setSmallIcon(R.drawable.logo_transparent)
.setGroup(context.getString(R.string.riot_app_name))
.setGroupSummary(true)
.setDeleteIntent(PendingIntent.getBroadcast(context.applicationContext,
Expand Down Expand Up @@ -716,7 +716,7 @@ object NotificationUtils {
.setWhen(System.currentTimeMillis())
.setContentTitle(context.getString(R.string.riot_app_name))
.setContentText(messagesStrings[0])
.setSmallIcon(R.drawable.message_notification_transparent)
.setSmallIcon(R.drawable.logo_transparent)
.setGroup(context.getString(R.string.riot_app_name))
.setGroupSummary(true)

Expand Down
Binary file added vector/src/main/res/drawable-hdpi/ic_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added vector/src/main/res/drawable-mdpi/ic_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file added vector/src/main/res/drawable-xhdpi/ic_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified vector/src/main/res/drawable-xxhdpi/logo_transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion vector/src/main/res/menu/vector_choose_sticker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<item
android:id="@+id/menu_settings"
android:icon="@drawable/icons_settings"
android:icon="@drawable/ic_settings"
android:title="@string/room_sliding_menu_settings"
app:showAsAction="always" />

Expand Down
2 changes: 1 addition & 1 deletion vector/src/main/res/menu/vector_home_sliding_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<item
android:id="@+id/sliding_menu_settings"
android:icon="@drawable/icons_settings"
android:icon="@drawable/ic_settings"
android:title="@string/room_sliding_menu_settings"/>

<item
Expand Down