commit | 03f336b1fa8ac79f94d27e9bc8f9b3a312eab18c | [log] [tgz] |
---|---|---|
author | Todd Kennedy <toddke@google.com> | Tue Feb 28 15:11:52 2017 -0800 |
committer | Todd Kennedy <toddke@google.com> | Tue Feb 28 15:11:52 2017 -0800 |
tree | 2727c195fb9d3b830015a442ff350a759e54e97c | |
parent | d632305e376c899f6d5cbcaa441350c310b9fe44 [diff] |
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
diff --git a/services/core/java/com/android/server/pm/InstantAppRegistry.java b/services/core/java/com/android/server/pm/InstantAppRegistry.java index 55a5f72..0ae5f31 100644 --- a/services/core/java/com/android/server/pm/InstantAppRegistry.java +++ b/services/core/java/com/android/server/pm/InstantAppRegistry.java
@@ -438,6 +438,7 @@ 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); }