diff options
author | mydongistiny <jaysonedson@gmail.com> | 2018-10-01 06:24:04 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | f26e3ddf2c19abf6784421076b3989d3927ea8b1 (patch) | |
tree | 59e7046c1a7a55c6e56dd457c747f8c94fc2a3d4 | |
parent | 0b476f959ff10acc9535d0aff8231a3ddda7f021 (diff) |
[ArrowOS][11.0] BurnInProtection: Fix null object reference with timer
Happens when after flashing a build you let the screen turn off before unlocking
Change-Id: I051b75531bf65c8cf3bbc4779fafdbae1a156686
Signed-off-by: mydongistiny <jaysonedson@gmail.com>
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java index cf24bf72d0a1..4b0a53c5cd16 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BurnInProtectionController.java @@ -91,6 +91,7 @@ public class BurnInProtectionController { public void stopSwiftTimer() { if (!mSwiftEnabled) return; + if (mTimer == null) return; mTimer.cancel(); mTimer.purge(); mTimer = null; |