commit f999af191f8410aa5c141e9a66d243d100373ef4
parent 0cc801033d4f623c4c3b8a1175a65b0a4dd29ef4
Author: rmalicdem <rmalicdem@mozilla.com>
Date: Fri, 28 Nov 2025 00:47:29 +0000
Bug 2002838 - Remove hardcoded toolbar shortcut default values in Settings r=android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D274326
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt
@@ -67,6 +67,7 @@ import org.mozilla.fenix.nimbus.QueryParameterStrippingSection.QUERY_PARAMETER_S
import org.mozilla.fenix.nimbus.QueryParameterStrippingSection.QUERY_PARAMETER_STRIPPING_PMB
import org.mozilla.fenix.nimbus.QueryParameterStrippingSection.QUERY_PARAMETER_STRIPPING_STRIP_LIST
import org.mozilla.fenix.settings.PhoneFeature
+import org.mozilla.fenix.settings.ShortcutType
import org.mozilla.fenix.settings.deletebrowsingdata.DeleteBrowsingDataOnQuitType
import org.mozilla.fenix.settings.logins.SavedLoginsSortingStrategyMenu
import org.mozilla.fenix.settings.logins.SortingStrategy
@@ -214,7 +215,7 @@ class Settings(
*/
var toolbarSimpleShortcutKey: String by stringPreference(
key = appContext.getPreferenceKey(R.string.pref_key_toolbar_simple_shortcut),
- default = { "new_tab" },
+ default = { ShortcutType.NEW_TAB.value },
persistDefaultIfNotExists = true,
)
@@ -223,7 +224,7 @@ class Settings(
*/
var toolbarExpandedShortcutKey: String by stringPreference(
key = appContext.getPreferenceKey(R.string.pref_key_toolbar_expanded_shortcut),
- default = { "bookmark" },
+ default = { ShortcutType.BOOKMARK.value },
persistDefaultIfNotExists = true,
)