Merge "Update icon for security settings." into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-17 22:33:26 +00:00
committed by Android (Google) Code Review
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;
}
);
});
}