Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92d29c66 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am a2a0a98a: Merge "Fix NPE if there is no accelerometer." into gingerbread

Merge commit 'a2a0a98a' into gingerbread-plus-aosp

* commit 'a2a0a98a':
  Fix NPE if there is no accelerometer.
parents efa4f7f8 a2a0a98a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -109,8 +109,10 @@ public abstract class WindowOrientationListener {
    }

    public void setAllow180Rotation(boolean allowed) {
        if (mSensorEventListener != null) {
            mSensorEventListener.setAllow180Rotation(allowed);
        }
    }

    public int getCurrentRotation(int lastRotation) {
        if (mEnabled) {