Bug 1241810 - Review follow-up: Ensure that FeedService always calls completeWakefulIntent(). r=me
MozReview-Commit-ID: GWnPCYBilNJ
--- a/mobile/android/base/java/org/mozilla/gecko/feeds/FeedService.java
+++ b/mobile/android/base/java/org/mozilla/gecko/feeds/FeedService.java
@@ -64,23 +64,23 @@ public class FeedService extends IntentS
public void onCreate() {
super.onCreate();
browserDB = GeckoProfile.get(this).getDB();
}
@Override
protected void onHandleIntent(Intent intent) {
- if (intent == null) {
- return;
- }
+ try {
+ if (intent == null) {
+ return;
+ }
- Log.d(LOGTAG, "Service started with action: " + intent.getAction());
+ Log.d(LOGTAG, "Service started with action: " + intent.getAction());
- try {
if (!SwitchBoard.isInExperiment(this, Experiments.CONTENT_NOTIFICATIONS)) {
Log.d(LOGTAG, "Not in content notifications experiment. Skipping.");
return;
}
FeedAction action = createActionForIntent(intent);
if (action == null) {
Log.d(LOGTAG, "No action to process");