mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 02:23:38 +02:00
Debug: ignore formatted size
This commit is contained in:
@@ -449,6 +449,11 @@ public class HtmlHelper {
|
||||
}
|
||||
|
||||
private static int getMaxFormatTextSize(Context context) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean ignore_formatted_size = prefs.getBoolean("ignore_formatted_size", false);
|
||||
if (ignore_formatted_size)
|
||||
return Integer.MAX_VALUE;
|
||||
|
||||
ActivityManager am = Helper.getSystemService(context, ActivityManager.class);
|
||||
int mc = am.getMemoryClass();
|
||||
if (mc >= 256)
|
||||
|
||||
Reference in New Issue
Block a user