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

Commit a466d163 authored by Jason Monk's avatar Jason Monk
Browse files

Fix QS edit accessibility

Change-Id: I30ba0582e7d25204f4319dda8fd4fd0ca7353cd6
Fixes: 28437963
parent 0121369e
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() {