summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
authorhuiyan <huiyan@codeaurora.org>2016-03-21 14:55:31 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-03-27 23:05:40 -0700
commitcba2c073700990bea194ee14ff3eac76fc31b42b (patch)
tree25b8ca092add9010b784372a66e47b887fc67f13 /src/com/android/gallery3d/ui
parent7f8e26df135b81971e409ce36c4aacce7b6cab58 (diff)
downloadandroid_packages_apps_Gallery2-cba2c073700990bea194ee14ff3eac76fc31b42b.tar.gz
android_packages_apps_Gallery2-cba2c073700990bea194ee14ff3eac76fc31b42b.tar.bz2
android_packages_apps_Gallery2-cba2c073700990bea194ee14ff3eac76fc31b42b.zip
Gallery2: Play gif photo directly in photopage
Implement new feature: Remove play icon and play the gif photo directly Change-Id: I95f82ca8ab912a98a5120ce2c01fe2fe33c9a875 CRs-Fixed: 987942
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/PhotoView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/ui/PhotoView.java b/src/com/android/gallery3d/ui/PhotoView.java
index 6e1c662c4..228229006 100644
--- a/src/com/android/gallery3d/ui/PhotoView.java
+++ b/src/com/android/gallery3d/ui/PhotoView.java
@@ -736,7 +736,7 @@ public class PhotoView extends GLView {
canvas.translate((int) (cx + 0.5f), (int) (cy + 0.5f));
int s = (int) (scale * Math.min(r.width(), r.height()) + 0.5f);
//Full pic locates at index 0 of the array in PhotoDataAdapter
- if (mModel.isVideo(0) || mModel.isGif(0)) {
+ if (mModel.isVideo(0)) {
drawVideoPlayIcon(canvas, s);
}
if (mLoadingState == Model.LOADING_FAIL ) {
@@ -866,7 +866,7 @@ public class PhotoView extends GLView {
invalidate();
}
int s = Math.min(drawW, drawH);
- if (mModel.isVideo(mIndex) || mModel.isGif(mIndex)) {
+ if (mModel.isVideo(mIndex)) {
drawVideoPlayIcon(canvas, s);
}