Commit 0f862b4
Revert "Do not use last app rotation as default."
This reverts commit 4bd149e
This change introduced a regression in the device rotation policy. Suppose you hold the device in landscape orientation then put it flat on a table. At this time, the accelerometer has no information about which way the device is oriented so the sensor expresses no preference over the orientation. Now switch to an application that forces portrait. Then go back to the original app that auto-rotates. We should remain portrait from this point onwards unless the device is picked up and we have accelerometer information from which to establish a new preferred orientation.
Bug: 7173556
Change-Id: I3684af3369e4ea55042081e19d96773c4d4bbe761 parent 4bd149e commit 0f862b4
File tree
1 file changed
+1
-11
lines changed- policy/src/com/android/internal/policy/impl
1 file changed
+1
-11
lines changedLines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | 364 | | |
366 | 365 | | |
367 | 366 | | |
| |||
3729 | 3728 | | |
3730 | 3729 | | |
3731 | 3730 | | |
3732 | | - | |
3733 | | - | |
3734 | | - | |
3735 | | - | |
3736 | | - | |
3737 | | - | |
3738 | | - | |
3739 | | - | |
3740 | | - | |
3741 | | - | |
| 3731 | + | |
3742 | 3732 | | |
3743 | 3733 | | |
3744 | 3734 | | |
| |||
0 commit comments