Skip to content

Commit b153600

Browse files
authored
Merge pull request #4 from janakact/patch-1
Change flag to FLAG_ACTIVITY_NEW_TASK
2 parents ca899f9 + 3060f24 commit b153600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/codegulp/invokeapp/RNInvokeApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void invokeApp(ReadableMap params) {
5151
Class<?> activityClass = Class.forName(className);
5252
Intent activityIntent = new Intent(reactContext, activityClass);
5353

54-
activityIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
54+
activityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
5555
reactContext.startActivity(activityIntent);
5656
} catch(Exception e) {
5757
Log.e(LOG_TAG, "Class not found", e);

0 commit comments

Comments
 (0)