mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-09 15:34:38 +01:00
Replace SwitchCompat with MaterialSwitch (#6989)
This commit is contained in:
parent
2f3f1fd186
commit
030226f288
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user