am ab779e0b: Merge "Increase bitmap memory cap for widgets (Bug 6597440)" into jb-dev
* commit 'ab779e0bb2948bdfac461f931f9d165a5a38b84a': Increase bitmap memory cap for widgets (Bug 6597440)
This commit is contained in:
@@ -190,7 +190,9 @@ class AppWidgetServiceImpl {
|
||||
WindowManager wm = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);
|
||||
int height = wm.getDefaultDisplay().getRawHeight();
|
||||
int width = wm.getDefaultDisplay().getRawWidth();
|
||||
mMaxWidgetBitmapMemory = 4 * width * height;
|
||||
// Cap memory usage at 1.5 times the size of the display
|
||||
// 1.5 * 4 bytes/pixel * w * h ==> 6 * w * h
|
||||
mMaxWidgetBitmapMemory = 6 * width * height;
|
||||
}
|
||||
|
||||
public void systemReady(boolean safeMode) {
|
||||
|
||||
Reference in New Issue
Block a user