From e8e1330cd5343ad40890e7a57edfa52c51d78749 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 28 Aug 2020 18:05:07 +0200 Subject: [PATCH] Cleanup --- .../java/im/vector/app/features/discovery/SettingsItem.kt | 4 ++-- .../features/discovery/SettingsTextButtonSingleLineItem.kt | 4 ++-- .../src/main/res/layout/item_settings_button_single_line.xml | 2 +- vector/src/main/res/layout/item_settings_simple_item.xml | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/discovery/SettingsItem.kt b/vector/src/main/java/im/vector/app/features/discovery/SettingsItem.kt index 53bf7e64d6..3471a3ab56 100644 --- a/vector/src/main/java/im/vector/app/features/discovery/SettingsItem.kt +++ b/vector/src/main/java/im/vector/app/features/discovery/SettingsItem.kt @@ -16,13 +16,13 @@ package im.vector.app.features.discovery import android.view.View -import android.widget.Switch import android.widget.TextView import androidx.annotation.StringRes import androidx.core.view.isVisible import com.airbnb.epoxy.EpoxyAttribute import com.airbnb.epoxy.EpoxyModelClass import com.airbnb.epoxy.EpoxyModelWithHolder +import com.google.android.material.switchmaterial.SwitchMaterial import im.vector.app.R import im.vector.app.core.epoxy.VectorEpoxyHolder import im.vector.app.core.extensions.setTextOrHide @@ -69,6 +69,6 @@ abstract class SettingsItem : EpoxyModelWithHolder() { class Holder : VectorEpoxyHolder() { val titleText by bind(R.id.settings_item_title) val descriptionText by bind(R.id.settings_item_description) - val switchButton by bind(R.id.settings_item_switch) + val switchButton by bind(R.id.settings_item_switch) } } diff --git a/vector/src/main/java/im/vector/app/features/discovery/SettingsTextButtonSingleLineItem.kt b/vector/src/main/java/im/vector/app/features/discovery/SettingsTextButtonSingleLineItem.kt index b7d9997d46..9f64a68d4f 100644 --- a/vector/src/main/java/im/vector/app/features/discovery/SettingsTextButtonSingleLineItem.kt +++ b/vector/src/main/java/im/vector/app/features/discovery/SettingsTextButtonSingleLineItem.kt @@ -18,7 +18,6 @@ package im.vector.app.features.discovery import android.widget.Button import android.widget.CompoundButton import android.widget.ProgressBar -import android.widget.Switch import android.widget.TextView import androidx.annotation.StringRes import androidx.core.content.ContextCompat @@ -27,6 +26,7 @@ import androidx.core.view.isVisible import com.airbnb.epoxy.EpoxyAttribute import com.airbnb.epoxy.EpoxyModelClass import com.airbnb.epoxy.EpoxyModelWithHolder +import com.google.android.material.switchmaterial.SwitchMaterial import im.vector.app.R import im.vector.app.core.epoxy.ClickListener import im.vector.app.core.epoxy.VectorEpoxyHolder @@ -160,7 +160,7 @@ abstract class SettingsTextButtonSingleLineItem : EpoxyModelWithHolder(R.id.settings_item_text) val mainButton by bind