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

Commit 17382aec authored by Steven Ng's avatar Steven Ng Committed by Automerger Merge Worker
Browse files

Merge "Print the full exception upon widgets inflation error" into sc-dev am: 19b0627a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14456996

Change-Id: I5aa971be94158991491c80d2d02ba9ab295c7a4a
parents 2b1189c3 19b0627a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -588,7 +588,7 @@ public class AppWidgetHostView extends FrameLayout {
                return ;
                return ;
            }
            }
            if (exception != null) {
            if (exception != null) {
                Log.w(TAG, "Error inflating RemoteViews : " + exception.toString());
                Log.w(TAG, "Error inflating RemoteViews", exception);
            }
            }
            content = getErrorView();
            content = getErrorView();
            mViewMode = VIEW_MODE_ERROR;
            mViewMode = VIEW_MODE_ERROR;
@@ -786,7 +786,7 @@ public class AppWidgetHostView extends FrameLayout {
        }
        }


        if (exception != null) {
        if (exception != null) {
            Log.w(TAG, "Error inflating AppWidget " + mInfo + ": " + exception.toString());
            Log.w(TAG, "Error inflating AppWidget " + mInfo, exception);
        }
        }


        if (defaultView == null) {
        if (defaultView == null) {