diff options
| author | Steven Ng <stevenckng@google.com> | 2021-05-06 22:45:11 +0100 |
|---|---|---|
| committer | Steven Ng <stevenckng@google.com> | 2021-05-06 22:45:11 +0100 |
| commit | c7e22233dcb8a7fa2639db215ffcfb84ed656e35 (patch) | |
| tree | dd87f9cd5c383e40fdb8bf7a945e72c3eadd4f92 /core/java | |
| parent | 56d59c655c458e5fced820e6ebaed3fdd0614d0f (diff) | |
Print the full exception upon widgets inflation error
Test: none
Bug: 184750539
Change-Id: If026cc09dc9f96f1443b7b6e73e0e4f219050183
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/appwidget/AppWidgetHostView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/appwidget/AppWidgetHostView.java b/core/java/android/appwidget/AppWidgetHostView.java index 82da4fbf5f7e..0142156ee805 100644 --- a/core/java/android/appwidget/AppWidgetHostView.java +++ b/core/java/android/appwidget/AppWidgetHostView.java @@ -557,7 +557,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; @@ -743,7 +743,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) { |
