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