Remove channel priority icons from half-shelf

Don't show the priority/gentle icons on the channel editor dialog view.
Don't bother removing the ImageView from the layout in case we decide to
bring it back though

Bug: 132689331
Test: visual
Change-Id: Ifffcfa8ec36ce25dab99a020faa15ac4cb1ab4d3
This commit is contained in:
Evan Laird
2019-05-23 16:58:50 -04:00
parent 2c163664ba
commit d3e55cf22a
2 changed files with 2 additions and 8 deletions

View File

@@ -22,7 +22,8 @@
android:padding="8dp"
android:orientation="horizontal" >
<ImageView
<!-- This is where an icon would go *if we wanted one* **wink** -->
<Space
android:id="@+id/icon"
android:layout_height="48dp"
android:layout_width="48dp"

View File

@@ -117,7 +117,6 @@ class AppControlView(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
class ChannelRow(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
lateinit var controller: ChannelEditorDialogController
private lateinit var iconView: ImageView
private lateinit var channelName: TextView
private lateinit var channelDescription: TextView
private lateinit var switch: Switch
@@ -131,7 +130,6 @@ class ChannelRow(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
}
override fun onFinishInflate() {
iconView = findViewById(R.id.icon)
channelName = findViewById(R.id.channel_name)
channelDescription = findViewById(R.id.channel_description)
switch = findViewById(R.id.toggle)
@@ -145,11 +143,6 @@ class ChannelRow(c: Context, attrs: AttributeSet) : LinearLayout(c, attrs) {
private fun updateViews() {
val nc = channel ?: return
iconView.setImageDrawable(
if (gentle)
context.getDrawable(R.drawable.ic_notification_gentle)
else context.getDrawable(R.drawable.ic_notification_interruptive))
channelName.text = nc.name ?: "(missing)"
nc.group?.let { groupId ->