set bounds
temporary workaround to prevent ephemeral app uninstallation from crashing the system server. Bug: 35673160 Test: manually uninstall ephemeral app and see the framework doesn't crash Change-Id: I6542206b51a00ca4321de4310a59620569b1516a
This commit is contained in:
@@ -438,6 +438,7 @@ class InstantAppRegistry {
|
||||
bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(),
|
||||
icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
|
||||
Canvas canvas = new Canvas(bitmap);
|
||||
icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
|
||||
icon.draw(canvas);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user