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

Commit 957593af 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

am: c3105690

Change-Id: I18637245608dd11728569429f718f757f3a5e7ca
parents 42abfb09 c3105690
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;