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

Fixing lock screen dismiss call if not being presented. #1524

Conversation

kshala-ford
Copy link
Contributor

Fixes #1523

This PR is [ready] for review.

Risk

This PR makes [no] API changes.

Bug Fixes
  • Fixes issue where LockScreenWillDismiss notification appears without LockScreenDidDismiss.

Tasks Remaining:

  • [Add early return if lock view controller is not presented]
  • [Run existing unit tests successfully]

CLA

@joeljfischer joeljfischer added the bug A defect in the library label Jan 22, 2020
@joeljfischer joeljfischer added this to In progress in v6.6.0 via automation Jan 22, 2020
@joeljfischer joeljfischer moved this from In progress to Review in progress in v6.6.0 Jan 22, 2020
@joeljfischer joeljfischer added manager-lockscreen Relating to the manager layer - lockscreen manager-streaming-video Relating to the manager layer - video streaming labels Jan 28, 2020
@joeljfischer
Copy link
Contributor

Hi @kshala-ford. Unfortunately, I'm having difficulty reproducing this issue. I understand the general idea of it, but I have tested an example video streaming app (the Obj-C example app with AppHMITypeNavigation and insecure autostreaming of a blank UIViewController) on Sync 3.0 and Sync 3.4 and have not been able to reproduce it. syncFrame is seems to be called correctly for me whether I start it without a lock screen, with a lock screen, or change the lock screen.

I'm also having difficulty understanding this statement from the attached issue:

Every dismiss attempt sends a SDLLockScreenManagerWillDismissLockScreenViewController notification. However if the lock screen is not presented, the notification SDLLockScreenManagerDidDismissLockScreenViewController is missing.

Should the second sentence be "the notification SDLLockScreenManagerDidDismissLockScreenViewController should not be sent."?

Could you please clarify the original issue and provide additional reproduction steps?

@joeljfischer
Copy link
Contributor

I was able to reproduce this and test the fix on iOS 12 devices.

v6.6.0 automation moved this from Waiting for Review to Reviewer approved Feb 17, 2020
@joeljfischer joeljfischer changed the base branch from master to develop February 17, 2020 19:56
@joeljfischer joeljfischer merged commit e981200 into smartdevicelink:develop Feb 17, 2020
v6.6.0 automation moved this from Reviewer approved to Done Feb 17, 2020
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 manager-lockscreen Relating to the manager layer - lockscreen manager-streaming-video Relating to the manager layer - video streaming
Projects
No open projects
v6.6.0
  
Done
Development

Successfully merging this pull request may close these issues.

Dismiss LockViewController not always completed
2 participants