implement deleting notifications
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="20dp" android:height="20dp" android:viewportWidth="20" android:viewportHeight="20">
|
||||
<path android:pathData="M8.5 4h3c0-0.828-0.672-1.5-1.5-1.5S8.5 3.172 8.5 4zm-1 0c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5h5C17.776 4 18 4.224 18 4.5S17.776 5 17.5 5h-1.054l-1.194 10.344C15.077 16.858 13.796 18 12.272 18H7.728c-1.524 0-2.805-1.142-2.98-2.656L3.554 5H2.5C2.224 5 2 4.776 2 4.5S2.224 4 2.5 4h5zM9 8c0-0.276-0.224-0.5-0.5-0.5S8 7.724 8 8v6c0 0.276 0.224 0.5 0.5 0.5S9 14.276 9 14V8zm2.5-0.5C11.224 7.5 11 7.724 11 8v6c0 0.276 0.224 0.5 0.5 0.5S12 14.276 12 14V8c0-0.276-0.224-0.5-0.5-0.5z" android:fillColor="@color/fluent_default_icon_tint"/>
|
||||
</vector>
|
||||
@@ -22,12 +22,26 @@
|
||||
android:tint="?android:textColorSecondary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/visibility"
|
||||
android:id="@+id/delete_notification"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginTop="-6dp"
|
||||
android:layout_marginRight="6dp"
|
||||
android:layout_toLeftOf="@id/more"
|
||||
android:visibility="gone"
|
||||
android:background="?android:selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/sk_delete_notification"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_fluent_delete_20_filled"
|
||||
android:tint="?android:textColorSecondary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/visibility"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginTop="-6dp"
|
||||
android:layout_marginRight="6dp"
|
||||
android:layout_toLeftOf="@id/delete_notification"
|
||||
android:background="?android:selectableItemBackgroundBorderless"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_visibility"
|
||||
|
||||
@@ -6,4 +6,10 @@
|
||||
android:showAsAction="always"
|
||||
android:visible="false"
|
||||
android:title="@string/sk_follow_requests" />
|
||||
<item
|
||||
android:id="@+id/clear_notifications"
|
||||
android:icon="@drawable/ic_fluent_delete_24_regular"
|
||||
android:showAsAction="always"
|
||||
android:visible="false"
|
||||
android:title="@string/sk_delete_all_notifications" />
|
||||
</menu>
|
||||
@@ -70,4 +70,11 @@
|
||||
<string name="sk_settings_rules">Rules</string>
|
||||
<string name="sk_settings_about">About the app</string>
|
||||
<string name="sk_settings_donate">Donate</string>
|
||||
<string name="sk_delete_notification">Delete notification</string>
|
||||
<string name="sk_delete_notification_confirm_action">Delete notification</string>
|
||||
<string name="sk_delete_notification_confirm">Are you sure you want to delete this notification?</string>
|
||||
<string name="sk_delete_all_notifications">Delete all notifications</string>
|
||||
<string name="sk_delete_all_notifications_confirm_action">Delete all</string>
|
||||
<string name="sk_delete_all_notifications_confirm">Are you sure you want to delete this notification?</string>
|
||||
<string name="sk_enable_delete_notifications">Enable deleting notifications</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user