Merge "Don't attempt to tint icon if icon is not available" into oc-mr1-dev

am: 90f9398f4e

Change-Id: Idb6dabf0d06440f3a2aecc2f4488bb98859f2eae
This commit is contained in:
Fan Zhang
2017-09-08 22:04:52 +00:00
committed by android-build-merger
2 changed files with 14 additions and 0 deletions

View File

@@ -230,6 +230,9 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
@VisibleForTesting
boolean tintTileIcon(Tile tile) {
if (tile.icon == null) {
return false;
}
// First check if the tile has set the icon tintable metadata.
final Bundle metadata = tile.metaData;
if (metadata != null