diff --git a/androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/LauncherActivity.java b/androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/LauncherActivity.java index 9e661fc7..c845ab35 100644 --- a/androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/LauncherActivity.java +++ b/androidbrowserhelper/src/main/java/com/google/androidbrowserhelper/trusted/LauncherActivity.java @@ -225,7 +225,7 @@ protected void launchTwa() { if (mTwaLauncher.getProviderPackage().equals("org.mozilla.firefox")) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, twaBuilder.getUri()); browserIntent.setFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); - browserIntent.setDataAndType(uri, "text/html"); + browserIntent.setDataAndType(twaBuilder.getUri(), "text/html"); browserIntent.addCategory(Intent.CATEGORY_BROWSABLE); startActivity(browserIntent); finish();