diff options
Diffstat (limited to 'ui/statistics/src')
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsDialogFragment.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsDialogFragment.java index f0308e364..f3a063aac 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsDialogFragment.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/feed/FeedStatisticsDialogFragment.java @@ -5,7 +5,7 @@ import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import androidx.appcompat.app.AlertDialog; +import com.google.android.material.dialog.MaterialAlertDialogBuilder; import androidx.fragment.app.DialogFragment; import de.danoeh.antennapod.ui.appstartintent.MainActivityStarter; @@ -27,7 +27,7 @@ public class FeedStatisticsDialogFragment extends DialogFragment { @NonNull @Override public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { - AlertDialog.Builder dialog = new AlertDialog.Builder(getContext()); + MaterialAlertDialogBuilder dialog = new MaterialAlertDialogBuilder(getContext()); dialog.setPositiveButton(android.R.string.ok, null); dialog.setNeutralButton(R.string.open_podcast, (dialogInterface, i) -> { long feedId = getArguments().getLong(EXTRA_FEED_ID); diff --git a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java index 567edd2bf..8efdcf603 100644 --- a/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java +++ b/ui/statistics/src/main/java/de/danoeh/antennapod/ui/statistics/subscriptions/StatisticsFilterDialog.java @@ -4,7 +4,7 @@ import android.content.Context; import android.content.SharedPreferences; import android.view.LayoutInflater; import android.widget.ArrayAdapter; -import androidx.appcompat.app.AlertDialog; +import com.google.android.material.dialog.MaterialAlertDialogBuilder; import androidx.core.util.Pair; import de.danoeh.antennapod.event.StatisticsEvent; import de.danoeh.antennapod.ui.statistics.R; @@ -40,7 +40,7 @@ public class StatisticsFilterDialog { public void show() { StatisticsFilterDialogBinding dialogBinding = StatisticsFilterDialogBinding.inflate( LayoutInflater.from(context)); - AlertDialog.Builder builder = new AlertDialog.Builder(context); + MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context); builder.setView(dialogBinding.getRoot()); builder.setTitle(R.string.filter); dialogBinding.includeMarkedCheckbox.setOnCheckedChangeListener((compoundButton, checked) -> { |