From ae191e239d48bf436715ace25d6624fbadf58ee0 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Fri, 16 Sep 2011 19:23:30 +0800 Subject: 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 --- src/com/android/camera/ui/SharePopup.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com') 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(); -- cgit v1.1