diff options
author | Mangesh Ghiware <mghiware@google.com> | 2012-10-07 23:55:43 -0700 |
---|---|---|
committer | Mangesh Ghiware <mghiware@google.com> | 2012-10-08 00:59:52 -0700 |
commit | 96e48d0946d3b3178a784f92fb40f21307cdd518 (patch) | |
tree | 4a03bdbfdcf21ca007ea5c64ed32d19119ce9575 /src/com/android/gallery3d/data/MediaObject.java | |
parent | 6f51ef0ceeac577e983a95a93eb79b42be8f4eaa (diff) | |
download | android_packages_apps_Snap-96e48d0946d3b3178a784f92fb40f21307cdd518.tar.gz android_packages_apps_Snap-96e48d0946d3b3178a784f92fb40f21307cdd518.tar.bz2 android_packages_apps_Snap-96e48d0946d3b3178a784f92fb40f21307cdd518.zip |
Share only 360-degree panoramas with new MIME type
Bug: 7302972
Instead of using the UsePanoramaViewer attribute in XMP metadata,
ensure that the panorama is full 360 degree by checking if the
cropped width is same as the full panorama width.
Change-Id: I66d864df96052f96db5fa19fb02b3abe214b4dec
Diffstat (limited to 'src/com/android/gallery3d/data/MediaObject.java')
-rw-r--r-- | src/com/android/gallery3d/data/MediaObject.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/data/MediaObject.java b/src/com/android/gallery3d/data/MediaObject.java index e738011ef..a16b9666d 100644 --- a/src/com/android/gallery3d/data/MediaObject.java +++ b/src/com/android/gallery3d/data/MediaObject.java @@ -38,10 +38,11 @@ public abstract class MediaObject { public static final int SUPPORT_IMPORT = 1 << 11; public static final int SUPPORT_TRIM = 1 << 12; public static final int SUPPORT_PANORAMA = 1 << 13; - public static final int SUPPORT_UNLOCK = 1 << 14; - public static final int SUPPORT_BACK = 1 << 15; - public static final int SUPPORT_ACTION = 1 << 16; - public static final int SUPPORT_CAMERA_SHORTCUT = 1 << 17; + public static final int SUPPORT_PANORAMA360 = 1 << 14; + public static final int SUPPORT_UNLOCK = 1 << 15; + public static final int SUPPORT_BACK = 1 << 16; + public static final int SUPPORT_ACTION = 1 << 17; + public static final int SUPPORT_CAMERA_SHORTCUT = 1 << 18; public static final int SUPPORT_ALL = 0xffffffff; // These are the bits returned from getMediaType(): |