Skip to content

Commit

Permalink
Merge pull request #4 from janakact/patch-1
Browse files Browse the repository at this point in the history
Change flag to FLAG_ACTIVITY_NEW_TASK
  • Loading branch information
vicke4 authored Jan 5, 2021
2 parents ca899f9 + 3060f24 commit b153600
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void invokeApp(ReadableMap params) {
Class<?> activityClass = Class.forName(className);
Intent activityIntent = new Intent(reactContext, activityClass);

activityIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
activityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
reactContext.startActivity(activityIntent);
} catch(Exception e) {
Log.e(LOG_TAG, "Class not found", e);
Expand Down

0 comments on commit b153600

Please sign in to comment.