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:
parent
7ba63520c0
commit
9aead96e1f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user