summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBill Lin <lbill@google.com>2021-06-22 11:22:37 +0800
committerBill Lin <lbill@google.com>2021-06-22 11:50:46 +0800
commitc4bdf37af2bb70df47969e557c27c6c7a1cdbada (patch)
tree82312faa33b2e67fccae271e5f2177cc6935d257 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentbdd8ff3fdd231dceb158f8989f7c5840f5270eb6 (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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions