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

Commit 1072d0d1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 13d650d7 4c36b55f
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;