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

Commit 27731e4d authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Fixing accessibility drag and drop Since the page's accessibility flag...

Merge "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" into ub-launcher3-calgary
parents 968eeeba d8d19938
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) {