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

Commit 343b90fb authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 95ea120d: am 61fe032a: Temporarily stop UI refresh during drag and drop

* commit '95ea120d':
  Temporarily stop UI refresh during drag and drop
parents da8f39d1 95ea120d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements
    private long mIdToKeepInPlace = -1;

    private boolean mAwaitingRemove = false;
    private boolean mDelayCursorUpdates = false;

    private ContactPhotoManager mPhotoManager;
    protected int mNumFrequents;
@@ -178,6 +179,7 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements
     * @param inDragging Boolean variable indicating whether there is a drag in process.
     */
    public void setInDragging(boolean inDragging) {
        mDelayCursorUpdates = inDragging;
        mInDragging = inDragging;
    }

@@ -224,7 +226,7 @@ public class PhoneFavoritesTileAdapter extends BaseAdapter implements
     * Else use {@link ContactTileLoaderFactory}
     */
    public void setContactCursor(Cursor cursor) {
        if (cursor != null && !cursor.isClosed()) {
        if (!mDelayCursorUpdates && cursor != null && !cursor.isClosed()) {
            mNumStarred = getNumStarredContacts(cursor);
            if (mAwaitingRemove) {
                mDataSetChangedListener.cacheOffsetsForDatasetChange();