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

Commit d8d19938 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing accessibility drag and drop

Since the page's accessibility flag is updated when entering
drag mode, it does not need to be updated on state change

Bug: 29581071
Change-Id: I1a876b4e8530601cb9bf25d097ea37780b525610
parent 8a4bb334
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
@@ -2088,6 +2088,8 @@ public class Workspace extends PagedView
    }

    public void updateAccessibilityFlags() {
        // TODO: Update the accessibility flags appropriately when dragging.
        if (!mLauncher.getAccessibilityDelegate().isInAccessibleDrag()) {
            if (Utilities.ATLEAST_LOLLIPOP) {
                int total = getPageCount();
                for (int i = numCustomPages(); i < total; i++) {
@@ -2103,6 +2105,7 @@ public class Workspace extends PagedView
                setImportantForAccessibility(accessible);
            }
        }
    }

    private void updateAccessibilityFlags(CellLayout page, int pageNo) {
        if (mState == State.OVERVIEW) {