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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user