Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only create lockscreen UIWindow as needed #1498

Conversation

NicoleYarroch
Copy link
Contributor

@NicoleYarroch NicoleYarroch commented Dec 10, 2019

Fixes #1496

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Unit Tests

Unit test cases were run.

Core Tests

Core version / branch / commit hash / module tested against: SYNC 3, v3.0
HMI name / version / branch / commit hash / module tested against: SYNC 3, v3.0

Summary

The lock screen window is now created when the lock screen is presented and destroyed when the lock screen is dismissed. This prevents a lock screen UIWindow from being added to [UIApplication sharedApplication].windows unnecessarily when the SDL app starts as the user may never connect to a head unit.

Changelog

Bug Fixes
  • The lock screen UIWindow is now created on presentation and destroyed on dismissal instead of being created immediately and persisting thought the app session.

Tasks Remaining:

  • iAP transport smoke tests - iOS 13
  • iAP transport smoke tests - iOS 12
  • Video streaming smoke tests

CLA

@NicoleYarroch NicoleYarroch self-assigned this Dec 10, 2019
@NicoleYarroch NicoleYarroch added the bug A defect in the library label Dec 10, 2019
@NicoleYarroch NicoleYarroch changed the title WIP: Only create lockscreen UIWindow when needed Only create lockscreen UIWindow as needed Dec 11, 2019
Copy link
Contributor

@joeljfischer joeljfischer left a comment

Choose a reason for hiding this comment

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

The lock screen is appearing totally broken for me using the ObjC example app. The app, even when the lock screen shouldn't be displayed, is totally black. When the lock screen is "on" the app is totally black with an icon in the top left corner, cut off. This only happens if the head unit is set to DD_OFF when the app connects.

@NicoleYarroch
Copy link
Contributor Author

Closing in favor of PR #1509 as pretty much all the code affected in this PR was changed.

@joeljfischer joeljfischer deleted the bugfix/issue_1496_lazy_instantiate_UIWindow branch February 7, 2020 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants