-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I tried your app but the Translation quick tile did not work at all, so I cloned this repo and debug it, and here is what I found.
I still don't know if this also affects other devices too, but on my device which uses Bahasa Indonesia as UI language. The event.text in this code attached below, only contains 1 "Bayangan pemberitahuan" string in it's array (translation of "Notification shade"). therefore the screenshot and translate function would not be called because it did not contain "Notification shade" string in it.
Lines 108 to 115 in b009e3f
| if (event.packageName.equals(PACKAGE_ANDROID_SYSTEM_UI) && | |
| event.text.any { it.contains("Notification shade") } | |
| ) { | |
| disableEvents() | |
| if (translateApp == TranslateApp.GOOGLE) { | |
| enableEventsForPackage(translateApp.packageName) | |
| } | |
| takeScreenshotAndTranslate() |
However, even after I found the cause, I still don't know how to safely fix this part that works for all devices. maybe you can find something about it?
Additional Info
- Device Model : Nokia X30 5G
- Device ROM : Android One 14
- Device Language : Bahasa Indonesia ( Indonesian )
- App version : 0.0.7 ( or commit b009e3f since I used the repo version too )
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels