diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-09-19 22:05:22 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-19 22:05:22 -0700 |
commit | 23a5e416ca6564cafcc80f7ee7f822e1dbe4d16b (patch) | |
tree | 120c01cdfeb3f6322b6ae82269eaa2d6796e7a8f /src/com/android/camera/ui/SharePopup.java | |
parent | 91d9529fee2283f491737e6b55c8e5e8f738c9c2 (diff) | |
parent | ae191e239d48bf436715ace25d6624fbadf58ee0 (diff) | |
download | LegacyCamera-23a5e416ca6564cafcc80f7ee7f822e1dbe4d16b.zip LegacyCamera-23a5e416ca6564cafcc80f7ee7f822e1dbe4d16b.tar.gz LegacyCamera-23a5e416ca6564cafcc80f7ee7f822e1dbe4d16b.tar.bz2 |
Merge "Update share UI to match redlines." into ics-factoryrom
Diffstat (limited to 'src/com/android/camera/ui/SharePopup.java')
-rw-r--r-- | src/com/android/camera/ui/SharePopup.java | 4 |
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(); |