From b653f90f33c6f9e6b48dfab018dece9dd021a476 Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Mon, 1 Jun 2009 19:33:32 +0800 Subject: Issue 1860338: Remove the video size check for "share". So the receiving end applications can queue the video to MediaUploader. This is basically a revert of perforce CL 137817. --- src/com/android/camera/MenuHelper.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/com/android/camera/MenuHelper.java') diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java index 81c9404..2a9254f 100644 --- a/src/com/android/camera/MenuHelper.java +++ b/src/com/android/camera/MenuHelper.java @@ -88,8 +88,6 @@ public class MenuHelper { public static final int MENU_VIDEO_PLAY = 23; public static final int MENU_VIDEO_SHARE = 24; - private static final long SHARE_FILE_LENGTH_LIMIT = 3L * 1024L * 1024L; - public static final int NO_STORAGE_ERROR = -1; public static final int CANNOT_STAT_ERROR = -2; public static final String EMPTY_STRING = ""; @@ -595,13 +593,6 @@ public class MenuHelper { onInvoke.run(new MenuCallback() { public void run(Uri u, IImage image) { if (image == null) return; - if (!isImage && getImageFileSize(image) - > SHARE_FILE_LENGTH_LIMIT) { - Toast.makeText(activity, - R.string.too_large_to_attach, - Toast.LENGTH_LONG).show(); - return; - } Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); -- cgit v1.1