Skip to content

Commit

Permalink
For mozilla-mobile#11320 - Expose login autofill setting to beta dime…
Browse files Browse the repository at this point in the history
…nsion
  • Loading branch information
ekager committed Jul 2, 2020
1 parent ed3a80a commit 1381aec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ object GeckoProvider {
}

val geckoRuntime = GeckoRuntime.create(context, runtimeSettings)
// As a quick fix for #8967 we are conflating "should autofill" with "should save logins"
val loginStorageDelegate = GeckoLoginStorageDelegate(
storage,
{ context.settings().shouldPromptToSaveLogins }
)
val loginStorageDelegate = GeckoLoginStorageDelegate(storage, { true })
geckoRuntime.loginStorageDelegate = GeckoLoginDelegateWrapper(loginStorageDelegate)

return geckoRuntime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ class SavedLoginsAuthFragment : PreferenceFragmentCompat(), AccountObserver {
}

requirePreference<SwitchPreference>(R.string.pref_key_autofill_logins).apply {
// The ability to toggle autofill on the engine is only available in Nightly currently
// See https://github.com/mozilla-mobile/fenix/issues/11320
isVisible = Config.channel.isNightlyOrDebug
isChecked = context.settings().shouldAutofillLogins
onPreferenceChangeListener = object : SharedPreferenceUpdater() {
override fun onPreferenceChange(preference: Preference, newValue: Any?): Boolean {
Expand Down

0 comments on commit 1381aec

Please sign in to comment.