diff options
author | Bill Lin <lbill@google.com> | 2021-06-22 11:22:37 +0800 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-22 15:57:25 +0000 |
commit | d516e416ead24b777dd584c2e557aaf73f247899 (patch) | |
tree | f812e06f9dc4b110106955d77a7483edbd4def07 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | b741681bcf9e38e5b10cc9965c7f61497073e919 (diff) |
Fix SysUI NPE crash during the boot/init progress
When Device boot and SystemUI servies starting, settings provider
may callback onChange() when OneHandedController register observer.
If the callback timing earlier han mEventCallback registered by
WMShll#initOneHanded, then the NPE will happen.
The simple fix is to add NPE check in
OneHandedController#notifyExpandNotifcation()
we can just ignore the callback during init time since the singal
is to expand notification and come from shorcut after user enable
and tap shortcut.(No need to act for the signal during boot progress.)
Test: manual reboot device and observe
Test: atest WMShellUnitTests
Bug: 191600033
Change-Id: I73849afa9904031759da304298221dbb222aeaaa
(cherry picked from commit c4bdf37af2bb70df47969e557c27c6c7a1cdbada)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions