Skip to content

Commit

Permalink
Honor the system orientation lock #144
Browse files Browse the repository at this point in the history
Revert "Fix unlockAllOrientations on Android (#133)"

This reverts commit 7a7db41.

Refer to the issue for more information, particularly this comment:
#144 (comment)
  • Loading branch information
jim-klaxoon committed Oct 4, 2024
1 parent 3003526 commit 416e4c7
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 416e4c7

Please sign in to comment.