-
-
Notifications
You must be signed in to change notification settings - Fork 23.7k
Android: Fix Android plugins regression #108243
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
Conversation
… plugins. Address a regression introduced in godotengine#102866. The proper behavior for Android plugins is to use `getContext` instead of `getActivity`, but since not all plugins follow this pattern, this fix provides backward compat to avoid breaking the plugins that don't.
primaryHost prior to initializing the registered Android plugins|
Note: issue #108193 was closed 6 hours ago, is this PR still valid? |
Yes it is. The current solution requires changes to existing Android plugins. |
syntaxerror247
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
Thank you so much for this. Is it safe to cherry pick this. This is blocking our Google Play Store Release. |
|
This shouldn't need to be cherry-picked if the regression was introduced by #102866 which has only been in since 4.5-beta1. After it's merged, it will be included in the next 4.5-beta release |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Thanks! |
Address a regression introduced in #102866.
The proper behavior for Android plugins is to use
getContextinstead ofgetActivity, but since not all plugins follow this pattern, this fix provides backward compat to avoid breaking the plugins that don't.Fixes #108193