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

Commit c7494be5 authored by Doris Ling's avatar Doris Ling Committed by android-build-merger
Browse files

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

am: abe44c26

Change-Id: I6d0730a148fbfecaaa4b94e376550af613ad174b
parents e9045a7a abe44c26
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()));
                    }
                );
            });