commit | 245ac03c07d20b454eedc249ed924359904be272 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Mon Feb 05 15:17:16 2018 -0800 |
committer | Ben Lin <linben@google.com> | Mon Feb 05 15:17:16 2018 -0800 |
tree | a53200ec580aa1e103da53cdb553279c4cad8b5d | |
parent | f52ff285116ae97f353c223184890549a11236a1 [diff] |
Check device for config_enableWallpaperService before calling service. On some devices, it is possible that config_enableWallpaperService is false, in which then there is no wallpaper service on device. Calling WallpaperManager#getWallpaperId will then result in an NPE. We should just do a check and return false. Bug: 62387789 Test: RoboSettingsTest Change-Id: I31db6845f06533d92140bf91d0f7fc7e7bedc5c5