From fec60d0546b69e4b928de4c3635bc88ea2944aa3 Mon Sep 17 00:00:00 2001 From: TwistedUmbrella Date: Mon, 7 Apr 2014 04:47:55 -0400 Subject: [PATCH] Summary check for intent data to support specific action --- shell/android/src/com/reicast/emulator/GL2JNIActivity.java | 5 ++--- shell/android/src/com/reicast/emulator/GL2JNINative.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java index caed54059..af0dfc6a0 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java +++ b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java @@ -199,9 +199,8 @@ public class GL2JNIActivity extends Activity { config.loadConfigurationPrefs(); // When viewing a resource, pass its URI to the native code for opening - Intent intent = getIntent(); - if (intent.getAction().equals("com.reciast.LAUNCH_ROM")) - fileName = Uri.decode(intent.getData().toString()); + if (getIntent().getAction().equals("com.reciast.EMULATOR")) + fileName = Uri.decode(getIntent().getData().toString()); // Create the actual GLES view mView = new GL2JNIView(getApplication(), config, fileName, false, diff --git a/shell/android/src/com/reicast/emulator/GL2JNINative.java b/shell/android/src/com/reicast/emulator/GL2JNINative.java index 256acb609..b0994726c 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNINative.java +++ b/shell/android/src/com/reicast/emulator/GL2JNINative.java @@ -221,9 +221,8 @@ public class GL2JNINative extends NativeActivity { config.loadConfigurationPrefs(); // When viewing a resource, pass its URI to the native code for opening - Intent intent = getIntent(); - if (intent.getAction().equals("com.reciast.LAUNCH_ROM")) - fileName = Uri.decode(intent.getData().toString()); + if (getIntent().getAction().equals("com.reciast.EMULATOR")) + fileName = Uri.decode(getIntent().getData().toString()); // Create the actual GLES view mView = new GL2JNIView(getApplication(), config, fileName, false,