Merge "Update icon for security settings." into pi-dev am: 3e3b496738

am: 59c8620745

Change-Id: I44c9c526b1e77107bd69ace16ecd9779ab25b73f
This commit is contained in:
Doris Ling
2018-04-17 16:30:26 -07:00
committed by android-build-merger
10 changed files with 34 additions and 81 deletions

View File

@@ -259,8 +259,10 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
return;
}
tile.icon = Icon.createWithResource(iconInfo.first, iconInfo.second);
ThreadUtils.postOnMainThread(() ->
preference.setIcon(tile.icon.loadDrawable(preference.getContext()))
ThreadUtils.postOnMainThread(() -> {
preference.setIcon(tile.icon.loadDrawable(preference.getContext()));
tile.icon = null;
}
);
});
}