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(
98
98
fun onLightThemeToggled (enabled : Boolean ) {
99
99
Timber .i(" User toggled light theme, is now enabled: $enabled " )
100
100
settingsDataStore.theme = if (enabled) DuckDuckGoTheme .LIGHT else DuckDuckGoTheme .DARK
101
+ viewState.value = currentViewState().copy(lightThemeEnabled = enabled)
101
102
command.value = Command .UpdateTheme
102
103
103
104
val pixelName = if (enabled) SETTINGS_THEME_TOGGLED_LIGHT else SETTINGS_THEME_TOGGLED_DARK
@@ -107,6 +108,8 @@ class SettingsViewModel @Inject constructor(
107
108
fun onAutocompleteSettingChanged (enabled : Boolean ) {
108
109
Timber .i(" User changed autocomplete setting, is now enabled: $enabled " )
109
110
settingsDataStore.autoCompleteSuggestionsEnabled = enabled
111
+
112
+ viewState.value = currentViewState().copy(autoCompleteSuggestionsEnabled = enabled)
110
113
}
111
114
112
115
private fun obtainVersion (variantKey : String ): String {
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
#
16
16
17
- VERSION =5.15.0
17
+ VERSION =5.15.1
You can’t perform that action at this time.
0 commit comments