diff options
| author | Steve Howard <showard@google.com> | 2010-08-21 09:40:22 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-21 09:40:22 -0700 |
| commit | dfc8cde5c865560458518dfcd178ec9f4ebede30 (patch) | |
| tree | c56ea953818d0eb785d07fe87ba50e87518ea445 /policy | |
| parent | b43ac2610b38562f07b7fbf31c96b5550e6974e3 (diff) | |
| parent | 1f4421048206ca1745ddd6366588759c9c5c38f9 (diff) | |
| download | frameworks_base-dfc8cde5c865560458518dfcd178ec9f4ebede30.zip frameworks_base-dfc8cde5c865560458518dfcd178ec9f4ebede30.tar.gz frameworks_base-dfc8cde5c865560458518dfcd178ec9f4ebede30.tar.bz2 | |
am 1f442104: am e0c8582e: Merge "Improve orientation sensing when waking up while flat." into gingerbread
Merge commit '1f4421048206ca1745ddd6366588759c9c5c38f9'
* commit '1f4421048206ca1745ddd6366588759c9c5c38f9':
Improve orientation sensing when waking up while flat.
Diffstat (limited to 'policy')
| -rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index a07c385..ecba1fe 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -2096,9 +2096,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { return mDeskDockRotation; } else { if (useSensorForOrientationLp(orientation)) { - // If the user has enabled auto rotation by default, do it. - int curRotation = mOrientationListener.getCurrentRotation(); - return curRotation >= 0 ? curRotation : lastRotation; + return mOrientationListener.getCurrentRotation(lastRotation); } return Surface.ROTATION_0; } |
