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

Commit e5bf866d authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Check whether internal viewport has changed

There was a typo in the previous patchset when comparing the old
viewport to the new viewport. Fix the typo here.

Test: none
Bug: 111108021
Change-Id: I9e79cd266b6b0aaadc71372ba6bce9534ad4a11a
parent 88c8a560
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -428,7 +428,7 @@ void NativeInputManager::setDisplayViewports(JNIEnv* env, jobjectArray viewportO
        // Internal viewport has changed if there wasn't one earlier, and there is one now, or,
        // if they are different.
        const bool internalViewportChanged = (newInternalViewport != nullptr) &&
                (oldInternalViewport == nullptr || (*newInternalViewport != *newInternalViewport));
                (oldInternalViewport == nullptr || (*oldInternalViewport != *newInternalViewport));
        if (internalViewportChanged) {
            sp<PointerController> controller = mLocked.pointerController.promote();
            updatePointerControllerFromViewport(controller, newInternalViewport);