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