mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-06 15:46:59 +02:00
Has small memory class
This commit is contained in:
@@ -924,6 +924,16 @@ public class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
static boolean hasSmallMemoryClass(Context context) {
|
||||
try {
|
||||
ActivityManager am = Helper.getSystemService(context, ActivityManager.class);
|
||||
return (am.getMemoryClass() < 256);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// View
|
||||
|
||||
static int getMaxTextureSize() {
|
||||
|
||||
Reference in New Issue
Block a user