mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/3278 - makes the string a constant
This commit is contained in:
parent
3b1ab8dac1
commit
ed5a0b2c03
@ -7,7 +7,6 @@ package org.mozilla.fenix.settings
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.widget.CompoundButton
|
||||
import androidx.preference.PreferenceViewHolder
|
||||
import mozilla.components.browser.search.SearchEngine
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.ext.components
|
||||
|
@ -80,7 +80,7 @@ abstract class SearchEngineListPreference : Preference, CompoundButton.OnChecked
|
||||
// https://github.com/mozilla-mobile/android-components/issues/3344
|
||||
val defaultSearchEngine = context.components.search.searchEngineManager.getDefaultSearchEngine(
|
||||
context,
|
||||
"."
|
||||
THIS_IS_A_HACK_FIX_ME
|
||||
)
|
||||
|
||||
val selectedSearchEngine =
|
||||
@ -153,4 +153,8 @@ abstract class SearchEngineListPreference : Preference, CompoundButton.OnChecked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val THIS_IS_A_HACK_FIX_ME = "."
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user