Merge "Fix class initialization issue" into qt-r1-dev

This commit is contained in:
TreeHugger Robot
2019-07-20 00:07:08 +00:00
committed by Android (Google) Code Review

View File

@@ -77,7 +77,7 @@ public class SysuiColorExtractor extends ColorExtractor implements Dumpable,
protected void extractWallpaperColors() { protected void extractWallpaperColors() {
super.extractWallpaperColors(); super.extractWallpaperColors();
// mTonal is final but this method will be invoked by the base class during its ctor. // mTonal is final but this method will be invoked by the base class during its ctor.
if (mTonal == null) { if (mTonal == null || mNeutralColorsLock == null) {
return; return;
} }
mTonal.applyFallback(mLockColors == null ? mSystemColors : mLockColors, mNeutralColorsLock); mTonal.applyFallback(mLockColors == null ? mSystemColors : mLockColors, mNeutralColorsLock);