File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/java/com/duckduckgo/app/settings Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ class SettingsViewModel @Inject constructor(
9898 fun onLightThemeToggled (enabled : Boolean ) {
9999 Timber .i(" User toggled light theme, is now enabled: $enabled " )
100100 settingsDataStore.theme = if (enabled) DuckDuckGoTheme .LIGHT else DuckDuckGoTheme .DARK
101+ viewState.value = currentViewState().copy(lightThemeEnabled = enabled)
101102 command.value = Command .UpdateTheme
102103
103104 val pixelName = if (enabled) SETTINGS_THEME_TOGGLED_LIGHT else SETTINGS_THEME_TOGGLED_DARK
@@ -107,6 +108,8 @@ class SettingsViewModel @Inject constructor(
107108 fun onAutocompleteSettingChanged (enabled : Boolean ) {
108109 Timber .i(" User changed autocomplete setting, is now enabled: $enabled " )
109110 settingsDataStore.autoCompleteSuggestionsEnabled = enabled
111+
112+ viewState.value = currentViewState().copy(autoCompleteSuggestionsEnabled = enabled)
110113 }
111114
112115 private fun obtainVersion (variantKey : String ): String {
Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616
17- VERSION =5.15.0
17+ VERSION =5.15.1
You can’t perform that action at this time.
0 commit comments