From a2dec4f7cfcaca9462212d94bde5df06115a2079 Mon Sep 17 00:00:00 2001 From: Grishka Date: Fri, 22 Mar 2024 00:49:42 +0300 Subject: [PATCH] Notification requests tweaks --- mastodon/build.gradle | 2 +- .../fragments/AccountNotificationsListFragment.java | 2 +- .../src/main/res/drawable/ic_delete_wght700_24px.xml | 9 +++++++++ .../src/main/res/drawable/ic_volume_off_wght700_24px.xml | 9 --------- .../src/main/res/layout/item_notification_request.xml | 2 +- mastodon/src/main/res/menu/notification_request.xml | 2 +- mastodon/src/main/res/values/strings.xml | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 mastodon/src/main/res/drawable/ic_delete_wght700_24px.xml delete mode 100644 mastodon/src/main/res/drawable/ic_volume_off_wght700_24px.xml diff --git a/mastodon/build.gradle b/mastodon/build.gradle index c43b31bc..9e37bef6 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -13,7 +13,7 @@ android { applicationId "org.joinmastodon.android" minSdk 23 targetSdk 33 - versionCode 92 + versionCode 93 versionName "2.4.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountNotificationsListFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountNotificationsListFragment.java index 5101f35b..28a36aeb 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountNotificationsListFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/AccountNotificationsListFragment.java @@ -118,7 +118,7 @@ public class AccountNotificationsListFragment extends BaseNotificationsListFragm tintMenuIcon(allow, R.attr.colorM3OnSurfaceVariant); } if(choiceMade && !allowed){ - mute.setIcon(R.drawable.ic_volume_off_wght700_24px); + mute.setIcon(R.drawable.ic_delete_wght700_24px); tintMenuIcon(mute, R.attr.colorM3Primary); }else{ tintMenuIcon(mute, R.attr.colorM3OnSurfaceVariant); diff --git a/mastodon/src/main/res/drawable/ic_delete_wght700_24px.xml b/mastodon/src/main/res/drawable/ic_delete_wght700_24px.xml new file mode 100644 index 00000000..e2ac6318 --- /dev/null +++ b/mastodon/src/main/res/drawable/ic_delete_wght700_24px.xml @@ -0,0 +1,9 @@ + + + diff --git a/mastodon/src/main/res/drawable/ic_volume_off_wght700_24px.xml b/mastodon/src/main/res/drawable/ic_volume_off_wght700_24px.xml deleted file mode 100644 index de45cef2..00000000 --- a/mastodon/src/main/res/drawable/ic_volume_off_wght700_24px.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/mastodon/src/main/res/layout/item_notification_request.xml b/mastodon/src/main/res/layout/item_notification_request.xml index 0e4fae16..5a71f4ca 100644 --- a/mastodon/src/main/res/layout/item_notification_request.xml +++ b/mastodon/src/main/res/layout/item_notification_request.xml @@ -50,7 +50,7 @@ android:layout_centerVertical="true" style="@style/Widget.Mastodon.M3.Button.Outlined" android:contentDescription="@string/mute_notifications" - android:src="@drawable/ic_volume_off_24px"/> + android:src="@drawable/ic_delete_24px"/> Unsolicited private mentions Filtered unless it’s in reply to your own mention or if you follow the sender Allow notifications - Mute notifications + Dismiss notification request %,d person you may know %,d people you may know Notifications from %s - Notifications from %s will be muted. + Notifications from %s have been dismissed. %s will now appear in your notification list. \ No newline at end of file