OSDN Git Service

Don't assume device has a status bar (TVs don't)
authorRobin Lee <rgl@google.com>
Wed, 5 Jul 2017 07:26:25 +0000 (09:26 +0200)
committerRobin Lee <rgl@google.com>
Wed, 5 Jul 2017 07:42:49 +0000 (07:42 +0000)
commitf039efa0da92fe6df1b8f130ee37c2add0361ef0
tree9b6f7f1b9485e66a27dd8992b6006704afb353f1
parent1a9fa0e1be010e437d315a9682d28d5d25a5c5d9
Don't assume device has a status bar (TVs don't)

If this block of code doesn't find a StatusBar, it crashes the
ActivityThread, which restarts every couple of seconds right up
until the OS has had enough and decides to reboot.

Test: flashall && adb logcat | grep '.SystemUIService: java.lang.NullPointerException'
Bug: 62940302
Change-Id: Ib0adbadbc467df4941e03c7506762a7ec302d673
packages/SystemUI/src/com/android/systemui/RoundedCorners.java