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

Commit 4c36b55f authored by Yuki Awano's avatar Yuki Awano
Browse files

Do not magnify if surface control is not set

Bug: 77938723
Test: None
Change-Id: I93fc306bf6287016ba86b4404507df4ae926dcad
parent 9d4d6e9d
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;