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

Commit 03ba4aae authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix QS edit accessibility" into nyc-dev am: 01dbf413 am: 67790d99

am: 5b1563be

* commit '5b1563be':
  Fix QS edit accessibility

Change-Id: I5d3dc26664b8f37147dd3d62661c6dabff7242a7
parents e89c9a43 5b1563be
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -279,6 +279,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta

    private void selectPosition(int position, View v) {
        // Remove the placeholder.
        notifyItemRemoved(mEditIndex);
        mTiles.remove(mEditIndex--);
        mAccessibilityMoving = false;
        move(mAccessibilityFromIndex, position, v);
@@ -323,7 +324,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
    }

    private boolean move(int from, int to, View v) {
        if (to >= mEditIndex) {
        if (to > mEditIndex) {
            if (from >= mEditIndex) {
                return false;
            }