diff options
author | Abhishek <52370265+abhishekabhi789@users.noreply.github.com> | 2023-09-14 14:29:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 14:29:40 +0000 |
commit | 6475dd3f05e7f02de7353315ea7db2ef3a875214 (patch) | |
tree | fb57c527b3314ac682a3b790eb7cd77c5c898d03 /app/src/main/res/drawable | |
parent | 4cdf12b664ee1b446cbfa44d9ecb3b3f1d3b01b4 (diff) | |
download | infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.gz infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.bz2 infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.lz infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.xz infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.tar.zst infinity-for-reddit-6475dd3f05e7f02de7353315ea7db2ef3a875214.zip |
Added a button to clear all recent searches. (#1487)
* Added a button to clear all recent searches.
- Deletes all the searches for the current user from the database.
- Delete icon placed at the end of subreddit name layout in the activity search layout(I couldn't find a better place for it).
_Icon visible only when there are recent searches.
* Confirmation dialog shows when clearing all search history.
Diffstat (limited to 'app/src/main/res/drawable')
-rw-r--r-- | app/src/main/res/drawable/ic_delete_all_24.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_delete_all_24.xml b/app/src/main/res/drawable/ic_delete_all_24.xml new file mode 100644 index 00000000..8b3673b4 --- /dev/null +++ b/app/src/main/res/drawable/ic_delete_all_24.xml @@ -0,0 +1,5 @@ +<vector android:height="24dp" android:tint="#000000" + android:viewportHeight="24" android:viewportWidth="24" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + <path android:fillColor="@android:color/white" android:pathData="M15,16h4v2h-4zM15,8h7v2h-7zM15,12h6v2h-6zM3,18c0,1.1 0.9,2 2,2h6c1.1,0 2,-0.9 2,-2L13,8L3,8v10zM5,10h6v8L5,18v-8zM10,4L6,4L5,5L2,5v2h12L14,5h-3z"/> +</vector> |