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

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

Merge "Fix QS edit accessibility" into nyc-dev

am: c665a3d4

* commit 'c665a3d4':
  Fix QS edit accessibility

Change-Id: I12ac600f198c8ed44b3a66741a6959b27c061571
parents a9922092 c665a3d4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -285,10 +285,11 @@ 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);
        mTiles.remove(mEditIndex);
        notifyItemRemoved(mEditIndex - 1);
        updateDividerLocations();
        saveSpecs(mHost);
    }

@@ -321,7 +322,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
        mAccessibilityFromIndex = position;
        // Add placeholder for last slot.
        mTiles.add(mEditIndex++, null);
        notifyItemInserted(mEditIndex - 1);
        notifyDataSetChanged();
    }

    public SpanSizeLookup getSizeLookup() {