Skip to content

Commit

Permalink
Merge pull request #304 from Jim-Bar/master
Browse files Browse the repository at this point in the history
Honor the system orientation lock #144
  • Loading branch information
wonday authored Dec 2, 2024
2 parents 3003526 + 416e4c7 commit d677166
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public void unlockAllOrientations() {

final Activity activity = getCurrentActivity();
if (activity == null) return;
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
isLocked = false;

//force send an UI orientation event when unlock
Expand Down

0 comments on commit d677166

Please sign in to comment.