diff options
author | Hongwei Wang <hwwang@google.com> | 2013-09-16 15:12:56 -0700 |
---|---|---|
committer | Hongwei Wang <hwwang@google.com> | 2013-09-16 20:40:20 -0700 |
commit | 4911300ae3fa7ab186ee271f8bc431b65a819a3c (patch) | |
tree | 6e820b603b6475259b3d26a0555ee883bc355c81 /src/com/android/dialer/list/PhoneFavoritesTileAdapter.java | |
parent | f796309c9492475cc1911d22fda5319d6d4c4853 (diff) |
Crossfade when drop to the position
Bug: 10686781
Change-Id: I8e5546b1eb8f914054e9525e8d763928d35836a8
Diffstat (limited to 'src/com/android/dialer/list/PhoneFavoritesTileAdapter.java')
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoritesTileAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java index 779b15dc4..73d3c36ff 100644 --- a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java +++ b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java @@ -609,7 +609,8 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements public void handleDrop() { boolean changed = false; if (mDraggedEntry != null) { - if (isIndexInBound(mDragEnteredEntryIndex)) { + if (isIndexInBound(mDragEnteredEntryIndex) && + mDragEnteredEntryIndex != mDraggedEntryIndex) { // Don't add the ContactEntry here (to prevent a double animation from occuring). // When we receive a new cursor the list of contact entries will automatically be // populated with the dragged ContactEntry at the correct spot. @@ -634,7 +635,6 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements PinnedPositions.STAR_WHEN_PINNING, "true").build(); // update the database here with the new pinned positions mContext.getContentResolver().update(pinUri, cv, null, null); - notifyDataSetChanged(); } mDraggedEntry = null; } |