From 1949a7cadb33e5d31ed06adf42d6d4993642c038 Mon Sep 17 00:00:00 2001 From: ovresko <32199620+ovresko@users.noreply.github.com> Date: Tue, 30 Jul 2024 19:59:28 +0100 Subject: [PATCH] add support for old android ussd dialog (MTK based) some old android phone api 4.* like lenovo A319 has dialog class as com.mediatek.phone.UssdAlertActivity all old MTK based versions of android have this type of dialog. --- .../src/main/java/com/romellfudi/ussdlibrary/USSDService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ussd-library/src/main/java/com/romellfudi/ussdlibrary/USSDService.java b/ussd-library/src/main/java/com/romellfudi/ussdlibrary/USSDService.java index 3d6dc56..5d5642b 100755 --- a/ussd-library/src/main/java/com/romellfudi/ussdlibrary/USSDService.java +++ b/ussd-library/src/main/java/com/romellfudi/ussdlibrary/USSDService.java @@ -157,7 +157,8 @@ private boolean isUSSDWidget(AccessibilityEvent event) { || event.getClassName().equals("com.zte.mifavor.widget.AlertDialog") || event.getClassName().equals("color.support.v7.app.AlertDialog") || event.getClassName().equals("com.transsion.widgetslib.dialog.PromptDialog") - || event.getClassName().equals("miuix.appcompat.app.AlertDialog")); + || event.getClassName().equals("miuix.appcompat.app.AlertDialog") + || event.getClassName().equals("com.mediatek.phone.UssdAlertActivity")); } /**