mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
20e5acdc95
commit
edc38f04d1
|
@ -1587,6 +1587,7 @@ public class Helper {
|
||||||
try {
|
try {
|
||||||
Class<?> c = Class.forName("android.os.SystemProperties");
|
Class<?> c = Class.forName("android.os.SystemProperties");
|
||||||
Method get = c.getMethod("get", String.class);
|
Method get = c.getMethod("get", String.class);
|
||||||
|
get.setAccessible(true);
|
||||||
String miui = (String) get.invoke(c, "ro.miui.ui.version.code");
|
String miui = (String) get.invoke(c, "ro.miui.ui.version.code");
|
||||||
return (TextUtils.isEmpty(miui) ? null : miui);
|
return (TextUtils.isEmpty(miui) ? null : miui);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
|
Loading…
Reference in New Issue