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

Commit b7555d8e authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 433e0b2e: am 931be0ee: Merge "Don\'t show empty widget in the case where a...

am 433e0b2e: am 931be0ee: Merge "Don\'t show empty widget in the case where a widget can\'t be inflated" into jb-mr1-dev

* commit '433e0b2e':
  Don't show empty widget in the case where a widget can't be inflated
parents ed9f9f25 433e0b2e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -667,8 +667,12 @@ public class KeyguardHostView extends KeyguardViewBase {
    private void addWidget(int appId) {
        AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(mContext);
        AppWidgetProviderInfo appWidgetInfo = appWidgetManager.getAppWidgetInfo(appId);
        if (appWidgetInfo != null) {
            AppWidgetHostView view = getAppWidgetHost().createView(mContext, appId, appWidgetInfo);
            addWidget(view);
        } else {
            Log.w(TAG, "AppWidgetInfo was null; not adding widget id " + appId);
        }
    }

    private void maybePopulateWidgets() {