summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-09-16 19:23:30 +0800
committerWu-cheng Li <wuchengli@google.com>2011-09-20 12:50:22 +0800
commitae191e239d48bf436715ace25d6624fbadf58ee0 (patch)
tree94a1a47c18feaab1c3bf1fb210a5b0ae3e37c4d1 /src/com
parent61afc876d9a8ee6bd314fe25f5bc0c83d51077d6 (diff)
downloadLegacyCamera-ae191e239d48bf436715ace25d6624fbadf58ee0.zip
LegacyCamera-ae191e239d48bf436715ace25d6624fbadf58ee0.tar.gz
LegacyCamera-ae191e239d48bf436715ace25d6624fbadf58ee0.tar.bz2
Update share UI to match redlines.
- Update highlight and arrow assets. - Add play icon in the video thumbnail. - Update play icon. bug:5290450 Change-Id: Ibbba581f1df1631fd846a6bfe511949651f25ce0
Diffstat (limited to 'src/com')
-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();