Update icon for security settings.
- also fix the issue of dynamic tile icon is being cached and not updated properly. Change-Id: I9289260340c1cddc4123fda88c366d658a11ddfc Fixes: 74255242 Test: visual
This commit is contained in:
@@ -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;
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user