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

Commit 4e2de24b authored by Jaewan Kim's avatar Jaewan Kim Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in dumpsys window"

parents 5ef8580b 0abc28e1
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -193,9 +193,11 @@ public abstract class WindowOrientationListener {
            pw.println(prefix + "mSensor=" + mSensor);
            pw.println(prefix + "mSensor=" + mSensor);
            pw.println(prefix + "mRate=" + mRate);
            pw.println(prefix + "mRate=" + mRate);


            if (mSensorEventListener != null) {
                mSensorEventListener.dumpLocked(pw, prefix);
                mSensorEventListener.dumpLocked(pw, prefix);
            }
            }
        }
        }
    }


    /**
    /**
     * This class filters the raw accelerometer data and tries to detect actual changes in
     * This class filters the raw accelerometer data and tries to detect actual changes in