1
0
Fork 0

For #3278 - makes the string a constant

master
Jeff Boek 2019-06-10 15:04:30 -07:00
parent fc603e65a5
commit 332b4c4da5
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 = "."
}
}