OSDN Git Service

Omit attribution icon in medium FastTrack.
authorJeff Sharkey <jsharkey@android.com>
Thu, 8 Oct 2009 17:29:22 +0000 (10:29 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 8 Oct 2009 17:29:22 +0000 (10:29 -0700)
Fixes http://b/2175531

res/layout-finger/quickcontact_header_med.xml
src/com/android/contacts/ui/QuickContactWindow.java

index a5762fd..c9ef2be 100644 (file)
 
     </LinearLayout>
 
-    <ImageView
-        android:id="@+id/source_divider"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginTop="1dip"
-        android:src="@drawable/quickcontact_frame_divider_med" />
-
-    <ImageView
-        android:id="@+id/source"
-        android:layout_width="30dip"
-        android:layout_height="30dip"
-        android:layout_marginLeft="13dip"
-        android:layout_marginRight="16dip"
-        android:scaleType="centerInside" />
-
 </LinearLayout>
index ecb5f9d..181a2d9 100644 (file)
@@ -320,7 +320,6 @@ public class QuickContactWindow implements Window.Callback,
         setHeaderText(R.id.timestamp, null);
 
         setHeaderImage(R.id.presence, null);
-        setHeaderImage(R.id.source, null);
 
         resetTrack();
 
@@ -1149,16 +1148,6 @@ public class QuickContactWindow implements Window.Callback,
             // Update status when valid was found
             setHeaderText(R.id.status, status.getStatus());
             setHeaderText(R.id.timestamp, status.getTimestampLabel(mContext));
-
-            final Drawable icon = status.getIcon(mContext);
-            setHeaderImage(R.id.source, icon);
-
-            if (mMode == QuickContact.MODE_MEDIUM) {
-                // Hide medium divider when missing icon
-                final boolean validIcon = icon != null;
-                mHeader.findViewById(R.id.source_divider).setVisibility(
-                        validIcon ? View.VISIBLE : View.GONE);
-            }
         }
 
         // Turn our list of actions into UI elements, starting with common types