diff options
author | Jochen Rill <jochen@tabbed.de> | 2014-10-22 09:39:09 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-01-18 00:53:29 +0000 |
commit | 126676f1a0ca48897302cf164cbb755b01c18ce6 (patch) | |
tree | 8c2409d45d3a9fd79779d83d9332012ea6adcc1e | |
parent | 305814ef8493a2f59b8b16d012b35fc93f37b970 (diff) | |
download | android_packages_apps_UnifiedEmail-126676f1a0ca48897302cf164cbb755b01c18ce6.tar.gz android_packages_apps_UnifiedEmail-126676f1a0ca48897302cf164cbb755b01c18ce6.tar.bz2 android_packages_apps_UnifiedEmail-126676f1a0ca48897302cf164cbb755b01c18ce6.zip |
Increase the maximum size for attachments.
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.java | 4 |
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 9a1396aff..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 = 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; |