-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
revert(android): revert method signatures for compatibility #14203
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
revert(android): revert method signatures for compatibility #14203
Conversation
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.
LGTM.
Which module was causing issues here?
The latest Android code of ti.bottomsheet module which uses
|
Ah ok. I was scanning through some Ti modules and didn't find it in there. Still strange because you are not using the return value so in my opinion it should call the same method. But glad this fixes it |
Whether or not we use the return value, at compilation of the module the Java Class will be used based on the SDK version which will differ in return type for different SDK versions without this PR. |
I see, just tested it and can confirm:
with this changes it works again. Side note: you might want to update the |
Yes, that's the crash error. Thanks for the hint on However, I think that we should use current-activity context if available, otherwise the TiApplication context in the SDK itself to make it backward compatible and remove that deprecated warning. Reason being that majority of the use cases will rely on the current activity context. What do you think? e.g.
|
The deprecation note is a preparation of this PR #13273 |
@m1ga Thanks. @hansemannn We can merge this PR now. |
removeOnLifecycleEventListener
return type which was earliervoid
but changed toboolean
in another PR here.It allows modules, compiled with older SDKs (<= 12.6.4), to run on newer SDK versions with the another PR merged.