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

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

Change-Id: I3f1e9bf5a8a5c9141e7a3c1e854c84af18ab4c45
This commit is contained in:
Steven Ng
2021-05-07 09:14:19 +00:00
committed by Automerger Merge Worker

View File

@@ -588,7 +588,7 @@ public class AppWidgetHostView extends FrameLayout {
return ;
}
if (exception != null) {
Log.w(TAG, "Error inflating RemoteViews : " + exception.toString());
Log.w(TAG, "Error inflating RemoteViews", exception);
}
content = getErrorView();
mViewMode = VIEW_MODE_ERROR;
@@ -786,7 +786,7 @@ public class AppWidgetHostView extends FrameLayout {
}
if (exception != null) {
Log.w(TAG, "Error inflating AppWidget " + mInfo + ": " + exception.toString());
Log.w(TAG, "Error inflating AppWidget " + mInfo, exception);
}
if (defaultView == null) {