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

Commit 736ceb01 authored by Jason Chang's avatar Jason Chang
Browse files

Fix to support talkback function for tutorial message

1) Enable tutorial's touchable WindowManager.LayoutParams
2) Set window container transaction to align the latest windows bounds
information

Bug: 168178198

Test: manual
Test: atest SystemUITests
Change-Id: I48720bb3b344d984421b591876a503ce59d1f4c2
parent 8a8efbca
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;