OSDN Git Service

Fix class initialization issue
authorLucas Dupin <dupin@google.com>
Tue, 16 Jul 2019 22:42:48 +0000 (15:42 -0700)
committerLucas Dupin <dupin@google.com>
Tue, 16 Jul 2019 22:42:48 +0000 (15:42 -0700)
commit1c72bc21514eb6b76f80cef68be1245fb5d4f423
tree16138e65373b47e37e55757e21ed442630d7521a
parent83638dffebf15ebfa0417931465b85efe002cd49
Fix class initialization issue

We were getting an NPE because the superclass was
calling an overridden method on its constructor,
before the variable could be initialized.

Test: atest ScrimControllerTest
Fixes: 137665467
Change-Id: I8914eac86cac19d92a68a2d55d97dfcee4066ed3
packages/SystemUI/src/com/android/systemui/colorextraction/SysuiColorExtractor.java