aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/org/inodes/gus/scummvm
diff options
context:
space:
mode:
authorAlyssa Milburn2011-10-22 20:45:15 +0200
committerAlyssa Milburn2011-10-22 20:45:15 +0200
commitff3f4d9493d66b034119f0ff15657c9e8cd1b1a8 (patch)
tree2fece75af4085c778ba0790ccd84ca56eecf9684 /backends/platform/android/org/inodes/gus/scummvm
parent245281cc55e9920fbfd13a339b43f1c968470dfe (diff)
downloadscummvm-rg350-ff3f4d9493d66b034119f0ff15657c9e8cd1b1a8.tar.gz
scummvm-rg350-ff3f4d9493d66b034119f0ff15657c9e8cd1b1a8.tar.bz2
scummvm-rg350-ff3f4d9493d66b034119f0ff15657c9e8cd1b1a8.zip
ANDROID: Fix plugins on Android 3.1+.
Android 3.1 changed the default behaviour for broadcasts so that it doens't wake up non-running receivers, so we need to override that.
Diffstat (limited to 'backends/platform/android/org/inodes/gus/scummvm')
-rw-r--r--backends/platform/android/org/inodes/gus/scummvm/Unpacker.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java b/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
index 8811b1f3ae..6cc7f8eadb 100644
--- a/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
+++ b/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
@@ -44,6 +44,9 @@ public class Unpacker extends Activity {
private AsyncTask<String, Integer, Void> mUnpacker;
private final static int REQUEST_MARKET = 1;
+ // Android 3.1+ only
+ public static final int FLAG_INCLUDE_STOPPED_PACKAGES = 32;
+
private static class UnpackJob {
public ZipFile zipfile;
public Set<String> paths;
@@ -273,6 +276,9 @@ public class Unpacker extends Activity {
unpack_libs);
Intent intent = new Intent(ScummVMApplication.ACTION_PLUGIN_QUERY);
+ // Android 3.1 defaults to FLAG_EXCLUDE_STOPPED_PACKAGES, and since
+ // none of our plugins will ever be running, that is not helpful
+ intent.setFlags(FLAG_INCLUDE_STOPPED_PACKAGES);
sendOrderedBroadcast(intent, Manifest.permission.SCUMMVM_PLUGIN,
new PluginBroadcastReciever(),
null, RESULT_OK, null, extras);