custom-tabs-client icon indicating copy to clipboard operation
custom-tabs-client copied to clipboard

Handle ActivityNotFoundException

Open talklittle opened this issue 7 years ago • 3 comments

talklittle avatar May 10 '17 18:05 talklittle

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.

talklittle avatar May 10 '17 18:05 talklittle

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:

  1. Start the Activity where bindCustomTabsService is called.
  2. Go to system settings and disable the Custom Tabs browser (eg. Chrome).
  3. Resume the Activity and try opening the Custom Tab.

tibmanus avatar Sep 06 '17 10:09 tibmanus