GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 82e82d2f authored by Alex Catarineu's avatar Alex Catarineu Committed by Matthew Finkel

Bug 40063: Do not sort search engines alphabetically

parent 5c92a7c7
...@@ -27,7 +27,6 @@ import org.mozilla.fenix.BuildConfig ...@@ -27,7 +27,6 @@ import org.mozilla.fenix.BuildConfig
import org.mozilla.fenix.Config import org.mozilla.fenix.Config
import org.mozilla.fenix.ext.components import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.settings import org.mozilla.fenix.ext.settings
import java.util.Locale
@SuppressWarnings("TooManyFunctions") @SuppressWarnings("TooManyFunctions")
open class FenixSearchEngineProvider( open class FenixSearchEngineProvider(
...@@ -148,8 +147,6 @@ open class FenixSearchEngineProvider( ...@@ -148,8 +147,6 @@ open class FenixSearchEngineProvider(
defaultList.copy( defaultList.copy(
list = defaultList.list.filter { list = defaultList.list.filter {
installedIdentifiers.contains(it.identifier) installedIdentifiers.contains(it.identifier)
}.sortedBy {
it.name.toLowerCase(Locale.getDefault())
}, },
default = defaultList.default?.let { default = defaultList.default?.let {
if (installedIdentifiers.contains(it.identifier)) { if (installedIdentifiers.contains(it.identifier)) {
......
...@@ -32,7 +32,6 @@ import org.mozilla.fenix.ext.components ...@@ -32,7 +32,6 @@ import org.mozilla.fenix.ext.components
import org.mozilla.fenix.ext.getRootView import org.mozilla.fenix.ext.getRootView
import org.mozilla.fenix.ext.settings import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.utils.allowUndo import org.mozilla.fenix.utils.allowUndo
import java.util.Locale
abstract class SearchEngineListPreference @JvmOverloads constructor( abstract class SearchEngineListPreference @JvmOverloads constructor(
context: Context, context: Context,
...@@ -115,7 +114,6 @@ abstract class SearchEngineListPreference @JvmOverloads constructor( ...@@ -115,7 +114,6 @@ abstract class SearchEngineListPreference @JvmOverloads constructor(
searchEngineList.list searchEngineList.list
.filter { it.identifier != searchEngineList.default?.identifier } .filter { it.identifier != searchEngineList.default?.identifier }
.sortedBy { it.name.toLowerCase(Locale.getDefault()) }
.forEachIndexed(setupSearchEngineItem) .forEachIndexed(setupSearchEngineItem)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment