mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Check storage space on logging
This commit is contained in:
@@ -124,7 +124,6 @@ public class MessageHelper {
|
||||
private static final long ATTACHMENT_PROGRESS_UPDATE = 1500L; // milliseconds
|
||||
private static final int MAX_META_EXCERPT = 1024; // characters
|
||||
private static final int FORMAT_FLOWED_LINE_LENGTH = 72;
|
||||
private static final long MIN_REQUIRED_SPACE = 250 * 1024L * 1024L;
|
||||
|
||||
private static final List<Charset> CHARSET16 = Collections.unmodifiableList(Arrays.asList(
|
||||
StandardCharsets.UTF_16,
|
||||
@@ -801,7 +800,7 @@ public class MessageHelper {
|
||||
|
||||
MessageHelper(MimeMessage message, Context context) throws IOException {
|
||||
long cake = Helper.getAvailableStorageSpace();
|
||||
if (cake < MIN_REQUIRED_SPACE)
|
||||
if (cake < Helper.MIN_REQUIRED_SPACE)
|
||||
throw new IOException(context.getString(R.string.app_cake));
|
||||
if (cacheDir == null)
|
||||
cacheDir = context.getCacheDir();
|
||||
|
||||
Reference in New Issue
Block a user