2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

For issue #13827: "Set as default browser" option disappears from Settings.

This commit is contained in:
Arturo Mejia 2020-08-14 10:29:37 -04:00
parent c7611b529c
commit 88f01731d7
2 changed files with 4 additions and 2 deletions

View File

@ -302,7 +302,8 @@ class SettingsFragment : PreferenceFragmentCompat() {
private fun setupPreferences() {
val leakKey = getPreferenceKey(R.string.pref_key_leakcanary)
val debuggingKey = getPreferenceKey(R.string.pref_key_remote_debugging)
val preferenceExternalDownloadManager = requirePreference<Preference>(R.string.pref_key_make_default_browser)
val preferenceExternalDownloadManager =
requirePreference<Preference>(R.string.pref_key_external_download_manager)
val preferenceLeakCanary = findPreference<Preference>(leakKey)
val preferenceRemoteDebugging = findPreference<Preference>(debuggingKey)
val preferenceMakeDefaultBrowser = requirePreference<Preference>(R.string.pref_key_make_default_browser)

View File

@ -136,7 +136,8 @@
android:defaultValue="false"
android:icon="@drawable/ic_download"
android:key="@string/pref_key_external_download_manager"
android:title="@string/preferences_external_download_manager" />
android:title="@string/preferences_external_download_manager"
app:isPreferenceVisible="false"/>
<androidx.preference.SwitchPreference
android:defaultValue="true"