You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/07/04 05:32:10 UTC

[GitHub] aszmyd commented on issue #31: Fix unlock

aszmyd commented on issue #31: Fix unlock
URL: https://github.com/apache/cordova-plugin-screen-orientation/pull/31#issuecomment-402367813
 
 
   @jcesarmobile please see the steps described in jira ticket - https://issues.apache.org/jira/browse/CB-13983
   
   Steps you describe does not automatically gets back "landscape" as after unlocking its up to phone to make the detection. Not sure why but the line `[[UIDevice currentDevice] setValue:[NSNumber numberWithInt:UIInterfaceOrientationUnknown] forKey:@"orientation"];` followed by `[UINavigationController attemptRotationToDeviceOrientation];` should in theory do the job.
   
   Original plugin covers you'r case because it keeps orientation "before lock" in local variable. So it forces phone to use it instead of allow it to recalculate. And because "last orientation" is being hard saved and restored, steps described in jira does not work.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org