search: actually commit filter mode to settings

Turns out the filter mode was also not being committed to settings.

I have no idea how this slipped into production.
This commit is contained in:
OxygenCobalt 2022-07-01 20:38:05 -06:00
parent 8b8eebdd95
commit 631120dafc
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 3 additions and 1 deletions

View file

@ -24,6 +24,7 @@ finished saving
- Fixed broken album menu
- Fixed crash that would occur when opening a file on some devices [#176]
- Fixed issue where the search filter menu would not display the correct mode
- Fixed crash when search filter mode was changed
#### What's Changed
- Reworked typography and iconography to be more aligned with material design guidelines

View file

@ -126,7 +126,7 @@ class SearchViewModel(application: Application) :
logD("Updating filter mode to $newFilterMode")
settings.searchFilterMode = filterMode
settings.searchFilterMode = newFilterMode
search(lastQuery)
}

View file

@ -226,6 +226,7 @@ class Settings(private val context: Context, private val callback: Callback? = n
DisplayMode.fromInt(
inner.getInt(context.getString(R.string.set_key_search_filter), Int.MIN_VALUE))
set(value) {
logD(value)
inner.edit {
putInt(
context.getString(R.string.set_key_search_filter),