Bug 1245236 - (Part 2) DownloadContentService: Do not run on unsupported systems. r=rnewman

MozReview-Commit-ID: 7jEe76SEFpc
This commit is contained in:
Sebastian Kaspari 2016-02-09 13:54:37 +01:00
parent 904e3413d0
commit 715fbd4820

View File

@ -10,6 +10,7 @@ import org.mozilla.gecko.GeckoAppShell;
import org.mozilla.gecko.GeckoEvent;
import org.mozilla.gecko.dlc.catalog.DownloadContent;
import org.mozilla.gecko.dlc.catalog.DownloadContentCatalog;
import org.mozilla.gecko.util.HardwareUtils;
import android.app.IntentService;
import android.content.ComponentName;
@ -64,6 +65,12 @@ public class DownloadContentService extends IntentService {
return;
}
if (!HardwareUtils.isSupportedSystem()) {
// This service is running very early before checks in BrowserApp can prevent us from running.
Log.w(LOGTAG, "System is not supported. Stop.");
return;
}
if (intent == null) {
return;
}