1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-04 19:31:01 +01:00

tablet mode

This commit is contained in:
Riko Sakurauchi 2019-06-18 15:03:02 +08:00
parent 7ba63520c0
commit 9aead96e1f
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF

View File

@ -124,6 +124,8 @@ import java.util.List;
import java.util.Locale;
import java.util.regex.Pattern;
import tw.nekomimi.nekogram.NekoConfig;
public class AndroidUtilities {
private static final Hashtable<String, Typeface> typefaceCache = new Hashtable<>();
@ -1267,7 +1269,9 @@ public class AndroidUtilities {
}
public static boolean isTablet() {
if (isTablet == null) {
if (NekoConfig.forceTablet) {
isTablet = true;
} else if (isTablet == null) {
isTablet = ApplicationLoader.applicationContext.getResources().getBoolean(R.bool.isTablet);
}
return isTablet;