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

Commit 1c4b2107 authored by Evan Laird's avatar Evan Laird
Browse files

Make taps on the row toggle switches

Test: manual; systemUI tests
Fixes: 138948956
Change-Id: I6a654ce959871e7286bc45b50b4e9a9499f8e401
parent 38bbedae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -46,7 +46,9 @@
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:padding="8dp"
                android:orientation="horizontal" >
                android:orientation="horizontal"
                android:clickable="true"
                android:foreground="?android:attr/selectableItemBackground" >

                <ImageView
                    android:id="@+id/icon"
+3 −1
Original line number Diff line number Diff line
@@ -20,7 +20,9 @@
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="8dp"
    android:orientation="horizontal" >
    android:clickable="true"
    android:orientation="horizontal"
    android:foreground="?android:attr/selectableItemBackground" >

    <!-- This is where an icon would go *if we wanted one* **wink** -->
    <Space
+3 −0
Original line number Diff line number Diff line
@@ -129,6 +129,8 @@ class AppControlView(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
        iconView = findViewById(R.id.icon)
        channelName = findViewById(R.id.app_name)
        switch = findViewById(R.id.toggle)

        setOnClickListener { switch.toggle() }
    }
}

@@ -156,6 +158,7 @@ class ChannelRow(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
                controller.proposeEditForChannel(it, if (b) it.importance else IMPORTANCE_NONE)
            }
        }
        setOnClickListener { switch.toggle() }
    }

    private fun updateViews() {