Convert drawer settings to Material
This commit is contained in:
parent
d5e80b089b
commit
63c5e2dc72
|
@ -1,7 +1,7 @@
|
||||||
package de.danoeh.antennapod.dialog;
|
package de.danoeh.antennapod.dialog;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.storage.preferences.UserPreferences;
|
import de.danoeh.antennapod.storage.preferences.UserPreferences;
|
||||||
import de.danoeh.antennapod.fragment.NavDrawerFragment;
|
import de.danoeh.antennapod.fragment.NavDrawerFragment;
|
||||||
|
@ -19,7 +19,7 @@ public class DrawerPreferencesDialog {
|
||||||
checked[i] = true;
|
checked[i] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context);
|
||||||
builder.setTitle(R.string.drawer_preferences);
|
builder.setTitle(R.string.drawer_preferences);
|
||||||
builder.setMultiChoiceItems(navTitles, checked, (dialog, which, isChecked) -> {
|
builder.setMultiChoiceItems(navTitles, checked, (dialog, which, isChecked) -> {
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import androidx.appcompat.app.AlertDialog;
|
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -22,7 +22,7 @@ public class HomeSectionsSettingsDialog {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context);
|
||||||
builder.setTitle(R.string.configure_home);
|
builder.setTitle(R.string.configure_home);
|
||||||
builder.setMultiChoiceItems(sectionLabels, checked, (dialog, which, isChecked) -> {
|
builder.setMultiChoiceItems(sectionLabels, checked, (dialog, which, isChecked) -> {
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
|
|
Loading…
Reference in New Issue