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/MediaItem.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/MediaItem.java')
-rw-r--r-- | src/com/android/gallery3d/data/MediaItem.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/data/MediaItem.java b/src/com/android/gallery3d/data/MediaItem.java index 77b86b847..da59abeef 100644 --- a/src/com/android/gallery3d/data/MediaItem.java +++ b/src/com/android/gallery3d/data/MediaItem.java @@ -107,6 +107,10 @@ public abstract class MediaItem extends MediaObject { return false; } + public boolean isPanorama360() { + return false; + } + // Returns width and height of the media item. // Returns 0, 0 if the information is not available. public abstract int getWidth(); |