From d70ad8b894c69ffbb01c1199762ece7c86411e66 Mon Sep 17 00:00:00 2001 From: kavi khalique <120750626+kavikhalique@users.noreply.github.com> Date: Tue, 7 May 2024 03:30:02 +0530 Subject: [PATCH] =?UTF-8?q?[android]=20solves=20issue=20of=20status=20chan?= =?UTF-8?q?ge=20of=20"search=20history"=20button=20on=E2=80=A6=20(#8087)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kavikhalique --- .../java/app/organicmaps/settings/SettingsPrefsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/app/organicmaps/settings/SettingsPrefsFragment.java b/android/app/src/main/java/app/organicmaps/settings/SettingsPrefsFragment.java index 1c07060186..a3f8554dce 100644 --- a/android/app/src/main/java/app/organicmaps/settings/SettingsPrefsFragment.java +++ b/android/app/src/main/java/app/organicmaps/settings/SettingsPrefsFragment.java @@ -258,7 +258,7 @@ public class SettingsPrefsFragment extends BaseXmlSettingsFragment ((TwoStatePreference) pref).setChecked(isHistoryEnabled); pref.setOnPreferenceChangeListener((preference, newValue) -> { boolean newVal = (Boolean) newValue; - if (newVal != isHistoryEnabled) + if (newVal != Config.isSearchHistoryEnabled()) { Config.setSearchHistoryEnabled(newVal); if (newVal)