Replace use of AlertDialog.Builder with MaterialAlertDialogBuilder.

This commit is contained in:
Sgn-32
2021-08-20 22:20:19 +02:00
committed by Alex Hart
parent fc9b8f43dd
commit 9232eb7c16
5 changed files with 11 additions and 7 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();