From cbfa0181f48e601a18d87f9f699f48460dd61acd Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Sat, 6 Aug 2022 15:52:04 +0200 Subject: Migrate dialogs to Material3 --- .../danoeh/antennapod/adapter/actionbutton/MobileDownloadHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/de/danoeh/antennapod/adapter/actionbutton') diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/MobileDownloadHelper.java b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/MobileDownloadHelper.java index 6d8af23c0..4c68a559d 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/MobileDownloadHelper.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/MobileDownloadHelper.java @@ -2,7 +2,7 @@ package de.danoeh.antennapod.adapter.actionbutton; 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.core.service.download.DownloadRequestCreator; import de.danoeh.antennapod.core.service.download.DownloadService; @@ -24,7 +24,7 @@ class MobileDownloadHelper { } static void confirmMobileDownload(final Context context, final FeedItem item) { - AlertDialog.Builder builder = new AlertDialog.Builder(context) + MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context) .setTitle(R.string.confirm_mobile_download_dialog_title) .setMessage(R.string.confirm_mobile_download_dialog_message) .setPositiveButton(context.getText(R.string.confirm_mobile_download_dialog_enable_temporarily), -- cgit v1.2.3