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

Commit a46cdc04 authored by Adam Cohen's avatar Adam Cohen Committed by Android Git Automerger
Browse files

am c80f72f7: Merge "Fixing issue where you couldn\'t set null RemoteViews for a widget" into jb-dev

* commit 'c80f72f7':
  Fixing issue where you couldn't set null RemoteViews for a widget
parents f1e43f76 c80f72f7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -819,7 +819,10 @@ class AppWidgetServiceImpl {
            return;
        }

        int bitmapMemoryUsage = views.estimateMemoryUsage();
        int bitmapMemoryUsage = 0;
        if (views != null) {
            bitmapMemoryUsage = views.estimateMemoryUsage();
        }
        if (bitmapMemoryUsage > mMaxWidgetBitmapMemory) {
            throw new IllegalArgumentException("RemoteViews for widget update exceeds maximum" +
                    " bitmap memory usage (used: " + bitmapMemoryUsage + ", max: " +