Replace SwitchCompat with MaterialSwitch (#6989)

This commit is contained in:
Taco 2024-03-13 15:14:07 -04:00 committed by GitHub
parent 2f3f1fd186
commit 030226f288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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"

View File

@ -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"