Skip to content

Commit 439189b

Browse files
committed
fix(android): android devices without customtabs support not falling back to default browser
Fixes #63
1 parent 2e81e34 commit 439189b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/android/provider/customTabsController.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ export class CustomTabsController extends CustomTabsServiceConnection {
122122
this.customTabsOptions = CustomTabsOptions.create();
123123
}
124124

125-
if (this.preferredPackage != null) {
126-
setTimeout(() => this.sessionLatchReady(false), CustomTabsController.MAX_WAIT_TIME_SECONDS * 1000);
127-
}
125+
setTimeout(() => this.sessionLatchReady(false), CustomTabsController.MAX_WAIT_TIME_SECONDS * 1000);
128126

129127
this.sessionLatch.then((available) => {
130128
Log.d(CustomTabsController.TAG, `Launching URI. Custom Tabs available: ${available}`);
77 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)