From 055dd6be8643727fa1bcf197f5e8438438f28284 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Wed, 12 Jan 2011 15:22:27 -0800 Subject: [PATCH] Cleanup WidgetProvider * Remove STOPSHIPs * Don't use startService calls Bug: 3341494 Bug: 3342662 Change-Id: I46fd60db40cf3476255f1af795da0b2a4bc34a7e --- src/com/android/email/provider/WidgetProvider.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/com/android/email/provider/WidgetProvider.java b/src/com/android/email/provider/WidgetProvider.java index 28ac8c672..8970af763 100644 --- a/src/com/android/email/provider/WidgetProvider.java +++ b/src/com/android/email/provider/WidgetProvider.java @@ -614,7 +614,6 @@ public class WidgetProvider extends AppWidgetProvider { if (Email.DEBUG) { Log.d(TAG, "onEnabled"); } - context.startService(new Intent(context, WidgetService.class)); } @Override @@ -625,7 +624,6 @@ public class WidgetProvider extends AppWidgetProvider { if (extras != null) { final int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); if (appWidgetIds != null && appWidgetIds.length > 0) { - context.startService(new Intent(context, WidgetService.class)); update(context, appWidgetIds); } } @@ -729,11 +727,6 @@ public class WidgetProvider extends AppWidgetProvider { if (widget != null) { WidgetViewSwitcher switcher = new WidgetViewSwitcher(widget); 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) {