Replace use of AlertDialog.Builder with MaterialAlertDialogBuilder.

This commit is contained in:
Sgn-32
2022-03-29 22:16:30 +02:00
committed by Cody Henthorne
parent ae28df901f
commit 48d7228ae7
4 changed files with 11 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ import androidx.annotation.WorkerThread;
import androidx.appcompat.app.AlertDialog;
import com.annimon.stream.Stream;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.i18n.phonenumbers.NumberParseException;
import com.google.i18n.phonenumbers.PhoneNumberUtil;
import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber;
@@ -126,7 +127,7 @@ public final class ContactUtil {
values[i] = getPrettyPhoneNumber(choices.get(i).requireE164(), locale);
}
new AlertDialog.Builder(context)
new MaterialAlertDialogBuilder(context)
.setItems(values, ((dialog, which) -> callback.onSelected(choices.get(which))))
.create()
.show();