Merge "Cleanup WidgetProvider" into honeycomb

This commit is contained in:
Marc Blank 2011-01-12 16:22:46 -08:00 committed by Android (Google) Code Review
commit 609e47cc8e

View File

@ -614,7 +614,6 @@ public class WidgetProvider extends AppWidgetProvider {
if (Email.DEBUG) { if (Email.DEBUG) {
Log.d(TAG, "onEnabled"); Log.d(TAG, "onEnabled");
} }
context.startService(new Intent(context, WidgetService.class));
} }
@Override @Override
@ -625,7 +624,6 @@ public class WidgetProvider extends AppWidgetProvider {
if (extras != null) { if (extras != null) {
final int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); final int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS);
if (appWidgetIds != null && appWidgetIds.length > 0) { if (appWidgetIds != null && appWidgetIds.length > 0) {
context.startService(new Intent(context, WidgetService.class));
update(context, appWidgetIds); update(context, appWidgetIds);
} }
} }
@ -729,11 +727,6 @@ public class WidgetProvider extends AppWidgetProvider {
if (widget != null) { if (widget != null) {
WidgetViewSwitcher switcher = new WidgetViewSwitcher(widget); WidgetViewSwitcher switcher = new WidgetViewSwitcher(widget);
switcher.execute(); switcher.execute();
// STOPHIP Remove logging
Log.d(TAG, "Widget " + widget.mWidgetId + ", chg to " + widget.mViewType);
// STOPSHIP Remove logging
} else {
Log.d(TAG, "Can't switch widget view, not found: " + (int)arg1);
} }
} }
} catch (NumberFormatException e) { } catch (NumberFormatException e) {