diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-07 17:36:47 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-24 16:30:38 -0700 |
commit | 64f9593c85ac00dbcdbc99d2d18c457c0bd0f68e (patch) | |
tree | 0a8a3a73400f407d15475314b54b6aa3c98fdeb6 /src/com/android/dialer/list/PhoneFavoriteTileView.java | |
parent | 6720273a04f940de2b383128b7596f33d781f231 (diff) |
Remove layout and logic for unused non-tiled favorites
Change-Id: I26caea4e47da8ae8420ef35e8006ee3f968d0630
Diffstat (limited to 'src/com/android/dialer/list/PhoneFavoriteTileView.java')
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteTileView.java | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteTileView.java b/src/com/android/dialer/list/PhoneFavoriteTileView.java index c05ba1db5..047f381ae 100644 --- a/src/com/android/dialer/list/PhoneFavoriteTileView.java +++ b/src/com/android/dialer/list/PhoneFavoriteTileView.java @@ -16,15 +16,10 @@ */ package com.android.dialer.list; -import android.animation.Animator; -import android.animation.AnimatorListenerAdapter; -import android.animation.AnimatorSet; -import android.animation.ObjectAnimator; import android.content.ClipData; import android.content.Context; import android.text.TextUtils; import android.util.AttributeSet; -import android.view.GestureDetector; import android.view.View; import com.android.contacts.common.ContactPhotoManager; @@ -34,7 +29,6 @@ import com.android.contacts.common.list.ContactEntry; import com.android.contacts.common.list.ContactTileView; import com.android.dialer.R; import com.android.dialer.list.PhoneFavoritesTileAdapter.ContactTileRow; -import com.android.dialer.list.PhoneFavoritesTileAdapter.ViewTypes; /** * A light version of the {@link com.android.contacts.common.list.ContactTileView} that is used in @@ -84,17 +78,7 @@ public abstract class PhoneFavoriteTileView extends ContactTileView { public boolean onLongClick(View v) { final PhoneFavoriteTileView view = (PhoneFavoriteTileView) v; // NOTE The drag shadow is handled in the ListView. - if (view instanceof PhoneFavoriteRegularRowView) { - final ContactTileRow parent = view.getParentRow(); - // If the view is regular row, start drag the row view. - // Drag is not available for the item exceeds the PIN_LIMIT. - if (parent.getRegularRowItemIndex() < PhoneFavoritesTileAdapter.PIN_LIMIT) { - parent.startDrag(EMPTY_CLIP_DATA, new View.DragShadowBuilder(), null, 0); - } - } else { - // If the view is a tile view, start drag the tile. - view.startDrag(EMPTY_CLIP_DATA, new View.DragShadowBuilder(), null, 0); - } + view.startDrag(EMPTY_CLIP_DATA, new View.DragShadowBuilder(), null, 0); return true; } }); |