Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e92aad43 authored by Winson Chung's avatar Winson Chung
Browse files

Increase bitmap memory cap for widgets (Bug 6597440)

Change-Id: I4149b8c5f204f10ebf0ef1f8d03709c0559178d0
parent 137bfad2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {