OSDN Git Service

Fix theme cannot change due to there is no wallpaper colors.
authorwilsonshih <wilsonshih@google.com>
Mon, 14 Jan 2019 04:42:35 +0000 (12:42 +0800)
committerWei Sheng Shih <wilsonshih@google.com>
Tue, 15 Jan 2019 23:40:40 +0000 (23:40 +0000)
commit31d70a1d5a992b4f67cb74b76fc6c38888a28224
treed78b882299a5d2652c94dc02387255699761c6d8
parent273e07d78dd47a4e9275344fd70cb593b742c381
Fix theme cannot change due to there is no wallpaper colors.

Device theme cannot changed because there is no wallpaper colors when
first boot with default image wallpaper. We can still calculate it
if there is no cropFile with the wallpaper component is ImageWallpaper.

Fix: 122660786
Test: manual test.
Test: atest WallpaperColorsTest WallpaperManagerTest WallpaperServiceTest

Change-Id: I26cc1d751dadd28185c650eff6e6ef60d5986aaa
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java