Add more debugging info when Launcher deletes widget from homescreen.

b/26219491

Change-Id: I5899cafa8d78e5e64a4ec1495ebf62ebc55ea8f5
(cherry picked from commit 70264a9717)
This commit is contained in:
Hyunyoung Song
2016-02-03 15:28:47 -08:00
parent 0e04980310
commit a27d7a5a19

View File

@@ -4098,7 +4098,8 @@ public class Launcher extends Activity
AppWidgetProviderInfo info = mAppWidgetManager.getAppWidgetInfo(appWidgetId);
if (info == null || appWidgetInfo == null ||
!info.provider.equals(appWidgetInfo.provider)) {
Log.e(TAG, "Removing invalid widget: id=" + item.appWidgetId);
Log.e(TAG, "Removing invalid widget: id=" + item.appWidgetId + " info=" + info
+ " appWidgetInfo=" + appWidgetInfo);
deleteWidgetInfo(item);
return;
}