diff --git a/res/drawable/clock_color_size_button_background_base.xml b/res/drawable/clock_color_size_button_background_base.xml index 2e6f2be5e3eb9f93aec0d2c610162f48a11c450c..e29b9f2a00a4500756a676698fac01ea165775d5 100644 --- a/res/drawable/clock_color_size_button_background_base.xml +++ b/res/drawable/clock_color_size_button_background_base.xml @@ -17,5 +17,5 @@ - + \ No newline at end of file diff --git a/res/drawable/option_border.xml b/res/drawable/option_border.xml index d0fde5cab177c638fe6c68fa36b19ecd65a855da..fce16663392d0a1a3e2101bd492ba6d298ffcad3 100644 --- a/res/drawable/option_border.xml +++ b/res/drawable/option_border.xml @@ -23,7 +23,7 @@ - + diff --git a/res/layout/dark_mode_section_view.xml b/res/layout/dark_mode_section_view.xml index 7eae574aaa896fa90ea32729e7f3766c97c6ab80..be7385dd2cd2ddc291ae7e93d86a6d3a5d9545b2 100644 --- a/res/layout/dark_mode_section_view.xml +++ b/res/layout/dark_mode_section_view.xml @@ -33,14 +33,13 @@ android:text="@string/mode_title" style="@style/SectionTitleTextStyle" /> - - diff --git a/res/layout/themed_icon_section_view.xml b/res/layout/themed_icon_section_view.xml index 6731cbe26bd30ba43b7cd953179fc3bcac3fd447..9799df32c809f2f91615e1d322cf7d9871c7bb47 100644 --- a/res/layout/themed_icon_section_view.xml +++ b/res/layout/themed_icon_section_view.xml @@ -39,14 +39,13 @@ android:text="@string/themed_icon_title" style="@style/SectionTitleTextStyle" /> - switchView.setChecked(mIsDarkModeActivated) diff --git a/src/com/android/customization/picker/notifications/ui/binder/NotificationSectionBinder.kt b/src/com/android/customization/picker/notifications/ui/binder/NotificationSectionBinder.kt index e4b2ce576296a52f6709de07a7f7d3ba96b8c4db..36db68c6308fbc9bddd1af57504e225d12bfed3d 100644 --- a/src/com/android/customization/picker/notifications/ui/binder/NotificationSectionBinder.kt +++ b/src/com/android/customization/picker/notifications/ui/binder/NotificationSectionBinder.kt @@ -19,13 +19,13 @@ package com.android.customization.picker.notifications.ui.binder import android.annotation.SuppressLint import android.view.View +import android.widget.Switch; import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.lifecycleScope import androidx.lifecycle.repeatOnLifecycle import com.android.customization.picker.notifications.ui.viewmodel.NotificationSectionViewModel import com.android.themepicker.R -import com.google.android.material.materialswitch.MaterialSwitch import kotlinx.coroutines.launch /** @@ -38,7 +38,7 @@ object NotificationSectionBinder { viewModel: NotificationSectionViewModel, lifecycleOwner: LifecycleOwner, ) { - val switch: MaterialSwitch = view.requireViewById(R.id.switcher) + val switch: Switch = view.requireViewById(R.id.switcher) view.setOnClickListener { viewModel.onClicked() } diff --git a/src/com/android/customization/picker/themedicon/ThemedIconSectionView.java b/src/com/android/customization/picker/themedicon/ThemedIconSectionView.java index 5b379a9cf0c8edccd56cf972af72d5c904e86ad5..2bbe74ee0ce820e83e45c60e55e957572bac7625 100644 --- a/src/com/android/customization/picker/themedicon/ThemedIconSectionView.java +++ b/src/com/android/customization/picker/themedicon/ThemedIconSectionView.java @@ -17,19 +17,19 @@ package com.android.customization.picker.themedicon; import android.content.Context; import android.util.AttributeSet; +import android.widget.Switch; import androidx.annotation.Nullable; import com.android.themepicker.R; import com.android.wallpaper.picker.SectionView; -import com.google.android.material.materialswitch.MaterialSwitch; /** * The {@link SectionView} for themed icon section view */ public class ThemedIconSectionView extends SectionView { - private MaterialSwitch mSwitchView; + private Switch mSwitchView; public ThemedIconSectionView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); @@ -49,7 +49,7 @@ public class ThemedIconSectionView extends SectionView { } /** Gets the switch view. */ - public MaterialSwitch getSwitch() { + public Switch getSwitch() { return mSwitchView; } }