Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): Make Bridge.restoreInstanceState() public #2538

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

fkirc
Copy link
Contributor

@fkirc fkirc commented Mar 7, 2020

Currently, Capacitor does not yet support Android fragments.
To overcome this limitation, I implemented my own BridgeFragment, which is similar to BridgeActivity. To do so, I found it useful to make Bridge.restoreInstanceState() a public method.

More generally, I suggest to treat Bridge.java as a pseudo-public API that can be used by any developer. The reason is that the existing Bridge implementations might not cover every case that is necessary for integrations in complex native codebases.

Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks!

@jcesarmobile jcesarmobile changed the title Make Bridge.restoreInstanceState() public feat(android): Make Bridge.restoreInstanceState() public Mar 9, 2020
@jcesarmobile jcesarmobile merged commit 7020f1f into ionic-team:master Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants