summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/SharePopup.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/SharePopup.java')
-rw-r--r--src/com/android/camera/ui/SharePopup.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/SharePopup.java b/src/com/android/camera/ui/SharePopup.java
index 4374d2d..9397591 100644
--- a/src/com/android/camera/ui/SharePopup.java
+++ b/src/com/android/camera/ui/SharePopup.java
@@ -119,6 +119,10 @@ public class SharePopup extends PopupWindow implements View.OnClickListener,
mThumbnail.setImageBitmap(bitmap);
mShareView = (ViewGroup) sharePopup.findViewById(R.id.share_view);
mShareView.setOnClickListener(this);
+ // Show play button if this is a video thumbnail.
+ if (mMimeType.startsWith("video/")) {
+ sharePopup.findViewById(R.id.play).setVisibility(View.VISIBLE);
+ }
mBitmapWidth = bitmap.getWidth();
mBitmapHeight = bitmap.getHeight();
Resources res = mContext.getResources();