aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
diff options
context:
space:
mode:
authorAngus Lees2010-06-29 12:56:22 +0000
committerAngus Lees2010-06-29 12:56:22 +0000
commita3a1499444654ed30aa13c0ab753b0916245f865 (patch)
tree77ffcd0c2dba7e6188a8b5390451f08f4ae54d20 /backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
parentc96d44d928a2cb47e70e428b4e61bcf80ceda42b (diff)
downloadscummvm-rg350-a3a1499444654ed30aa13c0ab753b0916245f865.tar.gz
scummvm-rg350-a3a1499444654ed30aa13c0ab753b0916245f865.tar.bz2
scummvm-rg350-a3a1499444654ed30aa13c0ab753b0916245f865.zip
Replace some code with constructs that work on Android pre-1.6.
Add a boolean for disabling the "no plugins found" warning. svn-id: r50494
Diffstat (limited to 'backends/platform/android/org/inodes/gus/scummvm/Unpacker.java')
-rw-r--r--backends/platform/android/org/inodes/gus/scummvm/Unpacker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java b/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
index efa3e1d2ef..7280aac7d4 100644
--- a/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
+++ b/backends/platform/android/org/inodes/gus/scummvm/Unpacker.java
@@ -34,6 +34,7 @@ import java.util.zip.ZipFile;
import java.util.zip.ZipEntry;
public class Unpacker extends Activity {
+ private final static boolean PLUGINS_ENABLED = true;
private final static String META_NEXT_ACTIVITY =
"org.inodes.gus.unpacker.nextActivity";
private ProgressBar mProgress;
@@ -79,7 +80,6 @@ public class Unpacker extends Activity {
if (cn != null) {
final Intent origIntent = getIntent();
Intent intent = new Intent();
- intent.setPackage(origIntent.getPackage());
intent.setComponent(cn);
if (origIntent.getExtras() != null)
intent.putExtras(origIntent.getExtras());
@@ -294,7 +294,7 @@ public class Unpacker extends Activity {
Intent intent = new Intent(ScummVMApplication.ACTION_PLUGIN_QUERY);
List<ResolveInfo> plugins = getPackageManager()
.queryBroadcastReceivers(intent, 0);
- if (plugins.isEmpty()) {
+ if (PLUGINS_ENABLED && plugins.isEmpty()) {
// No plugins installed
AlertDialog.Builder alert = new AlertDialog.Builder(this)
.setTitle(R.string.no_plugins_title)