summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ImageManager.java
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2009-07-01 14:52:24 +0800
committerChih-Chung Chang <chihchung@google.com>2009-07-01 16:53:04 +0800
commit35f8af0ff228adfeec6bb40844d362f6dd62dab6 (patch)
tree8ce01a381085b334db677ba68f58db45537fd327 /src/com/android/camera/ImageManager.java
parent387833adb5ea8ff6be37a5582ef965da839668bd (diff)
downloadLegacyCamera-35f8af0ff228adfeec6bb40844d362f6dd62dab6.zip
LegacyCamera-35f8af0ff228adfeec6bb40844d362f6dd62dab6.tar.gz
LegacyCamera-35f8af0ff228adfeec6bb40844d362f6dd62dab6.tar.bz2
Fix 1950477: Menu items for video review are incorrect.
Diffstat (limited to 'src/com/android/camera/ImageManager.java')
-rwxr-xr-xsrc/com/android/camera/ImageManager.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/camera/ImageManager.java b/src/com/android/camera/ImageManager.java
index 7a7767b..986fd03 100755
--- a/src/com/android/camera/ImageManager.java
+++ b/src/com/android/camera/ImageManager.java
@@ -145,6 +145,13 @@ public class ImageManager {
}
/**
+ * @return true if the mimetype is a video mimetype.
+ */
+ public static boolean isVideoMimeType(String mimeType) {
+ return mimeType.startsWith("video/");
+ }
+
+ /**
* @return true if the image is an image.
*/
public static boolean isImage(IImage image) {
@@ -156,7 +163,7 @@ public class ImageManager {
*/
public static boolean isVideo(IImage image) {
// This is the right implementation, but we use instanceof for speed.
- //return Util.isVideoMimeType(image.getMimeType());
+ //return isVideoMimeType(image.getMimeType());
return (image instanceof VideoObject);
}