mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245236 - (Part 2) DownloadContentService: Do not run on unsupported systems. r=rnewman
MozReview-Commit-ID: 7jEe76SEFpc
This commit is contained in:
parent
904e3413d0
commit
715fbd4820
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user