This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onDeleted(Context context, int[] appWidgetIds) { | |
// Old pre-Donut bug solved conflict between ACTION_APPWIDGET_DELETED intent sending a single appWidgetId | |
// and AppWidgetProvider.onDeleted() implementation expecting an array of appWidgetIds this way: | |
// this.onDeleted(context, new int[] { appWidgetId }); | |
// It seems safe to expect 1-element arrays in every case | |
someMethodDealingWithDeletedWidgets(appWidgetIds[0]); | |
super.onDeleted(context, appWidgetIds); | |
} |