Skip to content

Commit 4c25311

Browse files
Jeff BrownAndroid (Google) Code Review
authored andcommitted
Merge "Prevent unintended rotations. Bug: 4981385"
2 parents 87c9ce0 + c0347aa commit 4c25311

File tree

5 files changed

+304
-321
lines changed

5 files changed

+304
-321
lines changed

core/java/android/view/WindowManagerPolicy.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,13 @@ interface OnKeyguardExitResult {
880880
*/
881881
public boolean rotationHasCompatibleMetricsLw(int orientation, int rotation);
882882

883+
/**
884+
* Called by the window manager when the rotation changes.
885+
*
886+
* @param rotation The new rotation.
887+
*/
888+
public void setRotationLw(int rotation);
889+
883890
/**
884891
* Called when the system is mostly done booting to determine whether
885892
* the system should go into safe mode.

0 commit comments

Comments
 (0)