Skip to content

Commit 902a71c

Browse files
author
Serhii Selyvon
committed
Finish LauncherActivity after browser is started
Finishing the LauncherActivity after starting the browser ensures that subsequent intents are correctly delivered to the existing session onNewIntent method.
1 parent 22ef067 commit 902a71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/LauncherActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected void launchTwa() {
243243
mTwaLauncher.launch(twaBuilder,
244244
getCustomTabsCallback(),
245245
mSplashScreenStrategy,
246-
() -> mBrowserWasLaunched = true,
246+
() -> {mBrowserWasLaunched = true; finish();},
247247
getFallbackStrategy());
248248

249249
if (!sChromeVersionChecked) {

0 commit comments

Comments
 (0)