summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorBill Lin <lbill@google.com>2021-06-22 11:22:37 +0800
committerDaniel Norman <danielnorman@google.com>2021-06-23 21:36:37 -0700
commitcf4defbdf8791d00e9ed87ad0c01d93a2d5544a8 (patch)
treec2361660e516c0c0017f0f55f2e7d42230b799ea /libs/hwui/renderthread/RenderThread.cpp
parent4c3d4ac80fe9f0fb4fbb4fcffcd2ba3f4e6fca6c (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 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions