We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40a9da3 + e92aad4 commit ab779e0Copy full SHA for ab779e0
services/java/com/android/server/AppWidgetServiceImpl.java
@@ -190,7 +190,9 @@ void computeMaximumWidgetBitmapMemory() {
190
WindowManager wm = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);
191
int height = wm.getDefaultDisplay().getRawHeight();
192
int width = wm.getDefaultDisplay().getRawWidth();
193
- mMaxWidgetBitmapMemory = 4 * width * height;
+ // Cap memory usage at 1.5 times the size of the display
194
+ // 1.5 * 4 bytes/pixel * w * h ==> 6 * w * h
195
+ mMaxWidgetBitmapMemory = 6 * width * height;
196
}
197
198
public void systemReady(boolean safeMode) {
0 commit comments