commit | c1a785914a969c1dfcc84fe55652882910c4a284 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Fri Oct 23 11:02:05 2020 -0700 |
committer | Tony Wickham <twickham@google.com> | Fri Oct 23 11:02:05 2020 -0700 |
tree | 59bb025d572a1df8dbc4b79af1b17130e8070f60 | |
parent | 31b03941ef3aa17edc08c1b509d4fa23766f2d2c [diff] |
Add null check between calling onMotionPauseDetected() and Changed() Some listeners such as ScreenPinnedInputConsumer only care about the first pause detection and thus clear the MotionPauseDetector in onMotionPauseDetected(). Because clear() sets mOnMotionPauseListener to null, we need a second null check before onMotionPauseChanged(). Fixes: 169329910 Change-Id: I4fc30d67ad808a5b0c8feb10cc5392d7cae042b1