mirror of
https://github.com/lampaa/com.lampa.startapp.git
synced 2026-02-04 00:06:15 +08:00
Fix for #154
This commit is contained in:
@@ -273,7 +273,7 @@ public class startApp extends Assets {
|
||||
callbackContext = callback;
|
||||
cordova.getActivity().startActivityForResult(LaunchIntent, 1);
|
||||
}
|
||||
if(params.has("intentstart") && "sendBroadcast".equals(params.getString("intentstart"))) {
|
||||
else if(params.has("intentstart") && "sendBroadcast".equals(params.getString("intentstart"))) {
|
||||
cordova.getActivity().sendBroadcast(LaunchIntent);
|
||||
}
|
||||
else {
|
||||
@@ -407,4 +407,4 @@ public class startApp extends Assets {
|
||||
callbackContext.sendPluginResult(pluginResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user