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

Commit fa4a23c6 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Controls UI - Fix title icon" into rvc-dev am: 5338509b am: dc2e86a7 am: a019f161

Change-Id: Ib833a7f6d333bc2a599037f8a5f0d986c944f984
parents 97e05823 a019f161
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -293,8 +293,13 @@ class ControlsUiControllerImpl @Inject constructor (
         * for this dialog. Use a textView with the ListPopupWindow to achieve
         * a similar effect
         */
        val item = adapter.findSelectionItem(selectedStructure) ?: adapter.getItem(0)
        parent.requireViewById<TextView>(R.id.app_or_structure_spinner).apply {
            setText((adapter.findSelectionItem(selectedStructure) ?: adapter.getItem(0)).getTitle())
            setText(item.getTitle())
        }
        parent.requireViewById<ImageView>(R.id.app_icon).apply {
            setContentDescription(item.getTitle())
            setImageDrawable(item.icon)
        }
        val anchor = parent.requireViewById<ViewGroup>(R.id.controls_header)
        anchor.setOnClickListener(object : View.OnClickListener {
@@ -330,11 +335,6 @@ class ControlsUiControllerImpl @Inject constructor (
                }
            }
        })

        parent.requireViewById<ImageView>(R.id.app_icon).apply {
            setContentDescription("My Home")
            setImageDrawable(items[0].icon)
        }
    }

    private fun loadPreference(structures: List<StructureInfo>): StructureInfo {