Files
John Andrew CamuandGoooler be8bb75d95 Introduce Lawnchair Advance Search (#3785)
* Introduce Lawnchair Device Search

Initial Implementation device search in Lawnchair:
Enables search functionality across Files, Contacts, and Suggestions on the Startpage.

* Apply reviewed suggestions by @Gooler

- Use retrofit for fetching suggestions

* use kotlinxJson

* Separate suggestion

* Apply changes code refine @Goooler

* Fix styling

* Implement MIME Type Compat

* Apply suggestion changes by @suphon-t

* Apply suggestion changes by @SuperDragonXD

* Cleanup

* Remodel FileInfo

* Private retrofit

* Clean up SearchRequest

* Add FileExtensions

* Optimize file search method

* Fix style

* Rename

* Optimize file opening

* Add type checkers

* Reformat AVDs

* Fixed crash java.lang.ClassCastException

error logs : https://katb.in/abahivihaqu

* More fixes

* Surround try catch to give proper error logs

java.lang.NullPointerException
	at app.lawnchair.search.data.SearchRequestKt$findContactsByName$2.invokeSuspend(SearchRequest.kt:124)
	at app.lawnchair.search.data.SearchRequestKt$findContactsByName$2.invoke(Unknown Source:8)
	at app.lawnchair.search.data.SearchRequestKt$findContactsByName$2.invoke(Unknown Source:4)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
	at app.lawnchair.search.data.SearchRequestKt.findContactsByName(SearchRequest.kt:68)
	at app.lawnchair.search.LawnchairSearchAlgorithm$performDeviceWideSearch$2.invokeSuspend(LawnchairSearchAlgorithm.kt:152)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)

* Fixed opened file instead of just redirect to file manager

* Fixed crash opening folder

* Initial implementation callback

* Add max results option for files, suggestion and people

* Add initial settings entry

* Properly use folder mimetype

* Fixed target icon styling

* Cleanups

* Revert

* Fixes

* Apply suggestions by @Goooler

* Fixed crash on external storage directory

* Implement history keyword using built-in SearchRecentSuggestionsProvider

* misc fixes

* Add timeout 3 seconds

- As we don't how long gonna take to receive response in startpage

* Misc fixes

* Misc fixes

---------

Co-authored-by: Goooler <wangzongler@gmail.com>
2023-12-09 08:13:28 +08:00

16 lines
1.1 KiB
XML

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:autoMirrored="true"
android:tint="?android:attr/textColorPrimary"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#00000000"
android:pathData="M12.5,8.89V18.5M12.5,8.89V5.577C12.5,5.369 12.5,5.266 12.535,5.177C12.565,5.099 12.615,5.03 12.679,4.977C12.752,4.916 12.85,4.883 13.047,4.818L17.447,3.351C17.802,3.232 17.98,3.173 18.122,3.209C18.246,3.24 18.353,3.317 18.422,3.425C18.5,3.548 18.5,3.735 18.5,4.11V7.423C18.5,7.631 18.5,7.734 18.465,7.823C18.435,7.9 18.385,7.969 18.321,8.023C18.248,8.084 18.15,8.117 17.953,8.182L13.553,9.649C13.198,9.767 13.02,9.827 12.878,9.791C12.754,9.76 12.647,9.683 12.578,9.575C12.5,9.452 12.5,9.265 12.5,8.89ZM12.5,18.5C12.5,19.881 10.933,21 9,21C7.067,21 5.5,19.881 5.5,18.5C5.5,17.119 7.067,16 9,16C10.933,16 12.5,17.119 12.5,18.5Z"
android:strokeWidth="2"
android:strokeColor="#000000"
android:strokeLineCap="round"
android:strokeLineJoin="round" />
</vector>