Remove STOPSHIP from WidgetProvider

Bug: 3335070
Change-Id: I838d5eeb795759da30946fbdb00fa3f0e4dbdb12
This commit is contained in:
Marc Blank 2011-01-09 18:31:51 -08:00
parent 75396e175d
commit 26cf5639e0

View File

@ -583,13 +583,7 @@ public class WidgetProvider extends AppWidgetProvider {
/*package*/ static EmailWidget getOrCreateWidget(Context context, int widgetId) {
// Lazily initialize these
if (sContext == null) {
if (context == null) { // STOPSHIP remove this check
throw new RuntimeException("context == null!");
}
sContext = context.getApplicationContext();
if (sContext == null) { // STOPSHIP remove this check
throw new RuntimeException("getApplicationContext() returned null!");
}
sWidgetManager = AppWidgetManager.getInstance(context);
sResolver = context.getContentResolver();
}