Skip to content

Commit

Permalink
fix(android): fix starting activity when launching from home screen (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga authored Nov 21, 2024
1 parent bcf16d1 commit c69e2ec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ protected void onCreate(Bundle savedInstanceState)
Intent mainIntent = Intent.makeMainActivity(getComponentName());
mainIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mainIntent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
mainIntent.setPackage(getPackageName());

// Fetch the intent this activity was launched with.
Intent newIntent = getIntent();
newIntent.setPackage(getPackageName());

// Determine if a Titanium root activity already exists.
// Only 1 root activity is allowed at a time to host the one and only Titanium JavaScript runtime.
Expand Down

0 comments on commit c69e2ec

Please sign in to comment.