mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-04-30 21:19:33 +00:00
Update to 8.6.0
This commit is contained in:
parent
3708e9847a
commit
d30f796d8c
2625 changed files with 166215 additions and 59265 deletions
|
|
@ -0,0 +1,22 @@
|
|||
package org.telegram.messenger;
|
||||
|
||||
import android.os.Build;
|
||||
|
||||
public class OneUIUtilities {
|
||||
private static Boolean isOneUI;
|
||||
|
||||
@SuppressWarnings("JavaReflectionMemberAccess")
|
||||
public static boolean isOneUI() {
|
||||
if (isOneUI != null) {
|
||||
return isOneUI;
|
||||
}
|
||||
|
||||
try {
|
||||
Build.VERSION.class.getDeclaredField("SEM_PLATFORM_INT");
|
||||
isOneUI = true;
|
||||
} catch (NoSuchFieldException e) {
|
||||
isOneUI = false;
|
||||
}
|
||||
return isOneUI;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue