custom-tabs-client
custom-tabs-client copied to clipboard
Handle ActivityNotFoundException
The bug appears in crash logs; I have not reproduced it first hand. Possibly a bug in support library version 25.3.1. I am unsure if it affects other support library versions. Also do not know what Chrome version this affects.
In line 52 https://github.com/GoogleChrome/custom-tabs-client/blob/c51efbddc4f976c88d15c730a79feba65ca857af/demos/src/main/java/org/chromium/customtabsdemos/CustomTabActivityHelper.java#L52 the packageName may be invalid as it is cached in CustomTabsHelper. Steps to reproduce:
- Start the Activity where bindCustomTabsService is called.
- Go to system settings and disable the Custom Tabs browser (eg. Chrome).
- Resume the Activity and try opening the Custom Tab.