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

Commit ed3a2ff1 authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge "Prevent Log.wtf crash in benign case" into nyc-dev

am: e49ede4e

* commit 'e49ede4e':
  Prevent Log.wtf crash in benign case
parents 6f9e5023 e49ede4e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -166,7 +166,9 @@ public class FalsingManager implements SensorEventListener {
     */
    public boolean isFalseTouch() {
        if (FalsingLog.ENABLED) {
            if (!mSessionActive) {
            // We're getting some false wtfs from touches that happen after the device went
            // to sleep. Only report missing sessions that happen when the device is interactive.
            if (!mSessionActive && mContext.getSystemService(PowerManager.class).isInteractive()) {
                FalsingLog.wtf("isFalseTouch", new StringBuilder()
                        .append("Session is not active, yet there's a query for a false touch.")
                        .append(" enabled=").append(isEnabled() ? 1 : 0)