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

Commit daa5ac49 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make taps on the row toggle switches"

parents 1c33aa49 1c4b2107
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() {