mirror of
https://github.com/lampaa/com.lampa.startapp.git
synced 2026-02-15 00:07:54 +08:00
Merge pull request #130 from Dragas/master
fixes an issue where `intent` field would be interpretted as `action` field
This commit is contained in:
@@ -160,11 +160,12 @@ public class startApp extends Assets {
|
||||
* set intent
|
||||
* http://developer.android.com/reference/android/content/Intent.html (java.lang.String)
|
||||
*/
|
||||
else if(params.has("intent")) {
|
||||
LaunchIntent = new Intent(params.getString("intent"));
|
||||
}
|
||||
else {
|
||||
LaunchIntent = new Intent();
|
||||
if(params.has("intent")) {
|
||||
ComponentName ci = new ComponentName(cordova.getActivity().getPackageName(), params.getString("intent"));
|
||||
it.setComponent(ci);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user