Summary check for intent data to support specific action
This commit is contained in:
parent
1e80306577
commit
91800aec5e
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue