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:
parent
8b8eebdd95
commit
631120dafc
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -126,7 +126,7 @@ class SearchViewModel(application: Application) :
|
|||
|
||||
logD("Updating filter mode to $newFilterMode")
|
||||
|
||||
settings.searchFilterMode = filterMode
|
||||
settings.searchFilterMode = newFilterMode
|
||||
|
||||
search(lastQuery)
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue