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

Commit 7d4d9bc3 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

QS: Fix accidental a11y tile removal

am: c8969630

Change-Id: I88ea3781c02b9ca9e1148b49790d7674e5ad2db4
parents cbb1ca44 c8969630
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -297,6 +297,9 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
        mAccessibilityMoving = false;
        mAccessibilityMoving = false;
        mTiles.remove(mEditIndex--);
        mTiles.remove(mEditIndex--);
        notifyItemRemoved(mEditIndex - 1);
        notifyItemRemoved(mEditIndex - 1);
        // Don't remove items when the last position is selected.
        if (position == mEditIndex) position--;

        move(mAccessibilityFromIndex, position, v);
        move(mAccessibilityFromIndex, position, v);
        notifyDataSetChanged();
        notifyDataSetChanged();
    }
    }