Skip to content

Commit

Permalink
add supproting for xiaomi redmi class
Browse files Browse the repository at this point in the history
  • Loading branch information
romellfudi committed Nov 30, 2022
1 parent eff0214 commit 66b0946
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ Add the following dependency in your app's `build.gradle` configuration file:
| :------: | ------ | :------: |
| jcenter() | 'com.romellfudi.ussdlibrary:ussd-library:1.1.i' | `DEPRECATED` |
| jcenter() | 'com.romellfudi.ussdlibrary:kotlin-ussd-library:1.1.k' | `DEPRECATED` |
| maven { url `https://jitpack.io` } | 'com.github.romellfudi.VoIpUSSD:ussd-library:1.3.0' | `READY` |
| maven { url `https://jitpack.io` } | 'com.github.romellfudi.VoIpUSSD:kotlin-ussd-library:1.3.0' | `READY` |
| maven { url `https://jitpack.io` } | 'com.github.romellfudi.VoIpUSSD:ussd-library:1.4.a' | `READY` |
| maven { url `https://jitpack.io` } | 'com.github.romellfudi.VoIpUSSD:kotlin-ussd-library:1.4.a' | `READY` |

* Writing a config xml file from [here](https://github.com/romellfudi/VoIpUSSD/blob/master/ussd-library/src/main/res/xml/ussd_service.xml) `to res/xml` folder (if necessary), this config file allow to link between Application and System Oerative:

Expand Down
2 changes: 1 addition & 1 deletion ussd-library-kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ext {
siteUrl = 'https://romellfudi.github.io/VoIpUSSD'
gitUrl = 'https://github.com/romellfudi/VoIpUSSD.git'

libraryVersion = '1.2.f'
libraryVersion = '1.4.a'

developerId = 'romellfudi'
developerName = 'Romell Dominguez'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ private boolean isUSSDWidget(AccessibilityEvent event) {
|| event.getClassName().equals("com.android.phone.oppo.settings.LocalAlertDialog")
|| 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("com.transsion.widgetslib.dialog.PromptDialog")
|| event.getClassName().equals("miuix.appcompat.app.AlertDialog"));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ussd-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
siteUrl = 'https://romellfudi.github.io/VoIpUSSDSample'
gitUrl = 'https://romellfudi.github.io/VoIpUSSDSample.git'

libraryVersion = '1.2.f'
libraryVersion = '1.4.a'

developerId = 'romellfudi'
developerName = 'Romell Dominguez'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ private boolean isUSSDWidget(AccessibilityEvent event) {
|| event.getClassName().equals("com.android.phone.oppo.settings.LocalAlertDialog")
|| 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("com.transsion.widgetslib.dialog.PromptDialog")
|| event.getClassName().equals("miuix.appcompat.app.AlertDialog"));
}

/**
Expand Down

0 comments on commit 66b0946

Please sign in to comment.