summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Rill <jochen@tabbed.de>2014-10-22 13:41:40 +0200
committerLorDClockaN <davor@losinj.com>2014-10-22 13:42:10 +0200
commit616fb38c4f6e601b0714018b594ed19af59d5ef4 (patch)
treec57c65af11e9bd932ffb7ea58676499fce4749fe
parent185c78bbb1cd6676bd53aa1f680fcdea3dc3d10e (diff)
Increase the maximum size for attachments.kitkat
It is often not possible to add more than two pictures, taken with a current-gen camera with relatively high resolution, to an email. This is because the maximum attachment size (for all attachments combined) defaults to 5MB when no user defined value is set. Since the option for setting the attachment size is currently not implemented, let us at least default to 25MB (as in play store email apps for example). See also: https://code.google.com/p/android/issues/detail?id=65853 Change-Id: Ice1e79f7eb116c263178ffce891fba07fe051a76
-rw-r--r--src/com/android/mail/providers/Settings.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/mail/providers/Settings.java b/src/com/android/mail/providers/Settings.java
index 4d8a901c9..3df455ce7 100644
--- a/src/com/android/mail/providers/Settings.java
+++ b/src/com/android/mail/providers/Settings.java
@@ -48,9 +48,9 @@ public class Settings implements Parcelable {
static final Settings EMPTY_SETTINGS = new Settings();
- // Max size for attachments (5 megs). Will be overridden by an account
+ // Max size for attachments (25 megs). Will be overridden by an account
// setting, if found.
- private static final int DEFAULT_MAX_ATTACHMENT_SIZE = Integer.MAX_VALUE; //5 * 1024 * 1024;
+ private static final int DEFAULT_MAX_ATTACHMENT_SIZE = 25 * 1024 * 1024;
public static final int SWIPE_SETTING_ARCHIVE = 0;
public static final int SWIPE_SETTING_DELETE = 1;