Remove STOPSHIP from WidgetProvider
Bug: 3335070 Change-Id: I838d5eeb795759da30946fbdb00fa3f0e4dbdb12
This commit is contained in:
parent
75396e175d
commit
26cf5639e0
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user