For #3278 - makes the string a constant
This commit is contained in:
parent
fc603e65a5
commit
332b4c4da5
|
@ -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