Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abe44c26 authored by Doris Ling's avatar Doris Ling Committed by Android (Google) Code Review
Browse files

Merge "Fixes crash in security settings." into pi-dev

parents 69d12406 70206e6f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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()));
                    }
                );
            });