Merge "Fixes crash in security settings." into pi-dev
This commit is contained in:
@@ -258,10 +258,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
|
||||
Log.w(TAG, "Failed to get icon from uri " + uri);
|
||||
return;
|
||||
}
|
||||
tile.icon = Icon.createWithResource(iconInfo.first, iconInfo.second);
|
||||
final Icon icon = Icon.createWithResource(iconInfo.first, iconInfo.second);
|
||||
ThreadUtils.postOnMainThread(() -> {
|
||||
preference.setIcon(tile.icon.loadDrawable(preference.getContext()));
|
||||
tile.icon = null;
|
||||
preference.setIcon(icon.loadDrawable(preference.getContext()));
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user