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

Commit c3105690 authored by Yuki Awano's avatar Yuki Awano Committed by android-build-merger
Browse files

Merge "Do not magnify if surface control is not set" into pi-dev

am: 1072d0d1

Change-Id: I672e8ad0363775c846dcfbb86ef1c98242a8c40a
parents a964ebe4 1072d0d1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -922,6 +922,10 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
     * @return Whether this WindowContainer should be magnified by the accessibility magnifier.
     */
    boolean shouldMagnify() {
        if (mSurfaceControl == null) {
            return false;
        }

        for (int i = 0; i < mChildren.size(); i++) {
            if (!mChildren.get(i).shouldMagnify()) {
                return false;