Skip to content

Commit 4be1d8b

Browse files
committed
Code review
1 parent a7b7ffc commit 4be1d8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InAppBrowser.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ function setup() {
198198
}
199199
}
200200

201+
this.registerEvent();
202+
201203
intent.setData(Uri.parse(url));
202204
if (inAppBrowserOptions[InAppBrowserModule.KEY_SHOW_PAGE_TITLE]) {
203205
builder.setShowTitle(!!inAppBrowserOptions[InAppBrowserModule.KEY_SHOW_PAGE_TITLE]);
@@ -206,8 +208,6 @@ function setup() {
206208
intent.putExtra(CustomTabsIntent.EXTRA_TITLE_VISIBILITY_STATE, CustomTabsIntent.NO_TITLE);
207209
}
208210

209-
this.registerEvent();
210-
211211
this.currentActivity.startActivity(
212212
createStartIntent(this.currentActivity, intent),
213213
customTabsIntent.startAnimationBundle

0 commit comments

Comments
 (0)