Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 050627e4 authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Improve items arrangement in the app switcher popup" into tm-qpr-dev

parents 4fd0994a 294fe1c2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -546,8 +546,12 @@ class ControlsUiControllerImpl @Inject constructor (
            RenderInfo.registerComponentIcon(it.componentName, it.icon)
        }

        var adapter = ItemAdapter(context, R.layout.controls_spinner_item).apply {
            addAll(items)
        val adapter = ItemAdapter(context, R.layout.controls_spinner_item).apply {
            add(selected)
            addAll(items
                    .filter { it !== selected }
                    .sortedBy { it.appName.toString() }
            )
        }

        val iconSize = context.resources