Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62ba4376 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when dropping outside of list" into klp-dev

parents 584b7852 6635f2e2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -586,7 +586,7 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements
    public void dropContactEntry(int index) {
        boolean changed = false;
        if (mDraggedEntry != null) {
            if (index >= 0 && index <= mContactEntries.size()) {
            if (index >= 0 && index < mContactEntries.size()) {
                // 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.
@@ -1110,7 +1110,6 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements
            ContactEntry entryToPin, int oldPos, int newPinPos) {

        final ContentValues cv = new ContentValues();

        // Add the dragged contact at the user-requested spot.
        cv.put(String.valueOf(entryToPin.id), newPinPos);