diff --git a/app/src/main/kotlin/com/svenjacobs/app/leon/MainActivity.kt b/app/src/main/kotlin/com/svenjacobs/app/leon/MainActivity.kt index 2af1f243..53f07f27 100644 --- a/app/src/main/kotlin/com/svenjacobs/app/leon/MainActivity.kt +++ b/app/src/main/kotlin/com/svenjacobs/app/leon/MainActivity.kt @@ -105,7 +105,9 @@ class MainActivity : ComponentActivity() { } val packageName = CustomTabsClient.getPackageName(this, null) - CustomTabsClient.bindCustomTabsService(this, packageName, connection) + if (packageName != null) { + CustomTabsClient.bindCustomTabsService(this, packageName, connection) + } customTabsInitialized = true }