Closed Electric1447 closed 4 years ago
I think MIUI exposes an API to detect it, I remember reading about it years ago
We could also do that in addition
It's probably better because Build.MANUFACTURER would only tell you that it's a Huawei device. MIUI supports other brands too, and Huawei phones may have a custom ROM on it
We could display the notification for MIUI & EMUI and say in it about custom roms. Also it would just be a warning, it wouldn't prevent users from using the app if they desire
Yes, it should just be a warning when the user launches the app the first time
Do you want to do it or should I do it? I have time today
Not at home for couple days, do it yourself and I'll see if there is anything to change/fix
Done. I put it in MainActivity, it's shown only once when the app is first started. Feel free to improve it and add the Hebrew translation.
Made slight improvement in #91 so dismissing the alertdialog would make not show again (previously we needed to click the neutral button)
Also: Hebrew translation
Now we need to implement a warning for EMUI
I might do it later
This should work for EMUI as well, since it's a fork. I have no way to test it though.
We should inform MIUI & EMUI users of possible incompatibilities with the main branch of OpenPods.
We'll do this by detecting
Build.MANUFACTURER
and acting accordingy