summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorTaco <SkytkRSfan3895@gmail.com>2024-03-13 15:14:07 -0400
committerGitHub <noreply@github.com>2024-03-13 20:14:07 +0100
commit030226f288b37cbdbc300d627705015173b470a6 (patch)
tree9a7eea657eb191b92c34f056bff632ccb1f8219c /app/src/main
parent2f3f1fd1861f3a76b8473e0734956d7e7a417c0e (diff)
downloadAntennaPod-030226f288b37cbdbc300d627705015173b470a6.zip
Replace SwitchCompat with MaterialSwitch (#6989)
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/preferences/dialog/PreferenceSwitchDialog.java4
-rw-r--r--app/src/main/res/layout/dialog_switch_preference.xml2
-rw-r--r--app/src/main/res/layout/swipeactions_dialog.xml2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/dialog/PreferenceSwitchDialog.java b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/dialog/PreferenceSwitchDialog.java
index 69319c11e..10fbe6137 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/preferences/dialog/PreferenceSwitchDialog.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/preferences/dialog/PreferenceSwitchDialog.java
@@ -5,7 +5,7 @@ import android.view.LayoutInflater;
import android.view.View;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
-import androidx.appcompat.widget.SwitchCompat;
+import com.google.android.material.materialswitch.MaterialSwitch;
import de.danoeh.antennapod.R;
@@ -38,7 +38,7 @@ public class PreferenceSwitchDialog {
LayoutInflater inflater = LayoutInflater.from(this.context);
View layout = inflater.inflate(R.layout.dialog_switch_preference, null, false);
- SwitchCompat switchButton = layout.findViewById(R.id.dialogSwitch);
+ MaterialSwitch switchButton = layout.findViewById(R.id.dialogSwitch);
switchButton.setText(text);
builder.setView(layout);
diff --git a/app/src/main/res/layout/dialog_switch_preference.xml b/app/src/main/res/layout/dialog_switch_preference.xml
index 87f321c86..45fe21a90 100644
--- a/app/src/main/res/layout/dialog_switch_preference.xml
+++ b/app/src/main/res/layout/dialog_switch_preference.xml
@@ -6,7 +6,7 @@
android:layout_height="match_parent"
android:padding="24dp">
- <androidx.appcompat.widget.SwitchCompat
+ <com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/dialogSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/app/src/main/res/layout/swipeactions_dialog.xml b/app/src/main/res/layout/swipeactions_dialog.xml
index a1f0b7ae6..637c376d5 100644
--- a/app/src/main/res/layout/swipeactions_dialog.xml
+++ b/app/src/main/res/layout/swipeactions_dialog.xml
@@ -6,7 +6,7 @@
android:orientation="vertical"
android:padding="16dp">
- <androidx.appcompat.widget.SwitchCompat
+ <com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/enableSwitch"
android:layout_width="match_parent"
android:layout_height="wrap_content"