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

Commit 294fe1c2 authored by Anton Potapov's avatar Anton Potapov
Browse files

Improve items arrangement in the app switcher popup

Test: manual
Fixes: 266408712
Change-Id: I3f8b93797a29b41febb908ce16e0fc09f07958b1
parent 59ec8d18
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