Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Handle ActivityNotFoundException#30

Open
talklittle wants to merge 1 commit intoGoogleChrome:masterfrom
talklittle:activity-not-found-exception
Open

Handle ActivityNotFoundException#30
talklittle wants to merge 1 commit intoGoogleChrome:masterfrom
talklittle:activity-not-found-exception

Conversation

@talklittle
Copy link
Copy Markdown

No description provided.

@talklittle
Copy link
Copy Markdown
Author

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.

@tibmanus
Copy link
Copy Markdown

tibmanus commented Sep 6, 2017

In line 52

String packageName = CustomTabsHelper.getPackageNameToUse(activity);

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants