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

Commit e1f4f8e0 authored by Jason Chang's avatar Jason Chang Committed by Android (Google) Code Review
Browse files

Merge "Fix to support talkback function for tutorial message"

parents 6c796e57 736ceb01
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -239,9 +239,14 @@ public class OneHandedDisplayAreaOrganizer extends DisplayAreaOrganizer {
            throw new RuntimeException("Callers should call scheduleOffset() instead of this "
                    + "directly");
        }
        final WindowContainerTransaction wct = new WindowContainerTransaction();
        mDisplayAreaMap.forEach(
                (key, leash) -> animateWindows(leash, fromBounds, toBounds, direction,
                        durationMs));
                (key, leash) -> {
                    animateWindows(leash, fromBounds, toBounds, direction,
                            durationMs);
                    wct.setBounds(key.token, toBounds);
                });
        applyTransaction(wct);
    }

    private void resetWindowsOffset() {
+2 −3
Original line number Diff line number Diff line
@@ -184,7 +184,6 @@ public class OneHandedTutorialHandler implements OneHandedTransitionCallback {
                mDisplaySize.x, mTutorialAreaHeight, 0, 0,
                WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL,
                WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                        | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
                    | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
                    PixelFormat.TRANSLUCENT);
        lp.gravity = Gravity.TOP | Gravity.LEFT;