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: I7f57872ac4f8c27333b96dbd17e5fd35d517bb73
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user