Skip to content

Conversation

@lukebars
Copy link
Contributor

@lukebars lukebars commented Sep 9, 2025

Summary

Currently, the iOS orientation observer is not removed when camera is unmounted. It stays active and registers every orientation change. Looking at the code, it seems that there is code that should remove the observer, but it doesn't do it's job.

How did you test this change?

I've tested this on iPhone 16 Pro, with the fix and without. Without the fix, if you add logs to the self.setVideoOrientationToInterfaceOrientation() and go back to a previous screen from the camera screen, it still prints logs on each orientation change.

With the fix, the logs only appear when the camera is present in the current screen.

Copy link
Collaborator

@scarlac scarlac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent catch, @lukebars !

@scarlac scarlac merged commit dcb94f4 into teslamotors:master Sep 9, 2025
@scarlac
Copy link
Collaborator

scarlac commented Sep 9, 2025

Released in v16.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants