-
Notifications
You must be signed in to change notification settings - Fork 627
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
Fix Operation Progress Listener #1787
Conversation
pass progress values to callback function
* feat(IMAPSession): add support for moveMessagesOpeation to java library * feat: support fieldClass in getObjectField * fix: use global reference of progress listener pass progress values to callback function
@farnabaz Hey, I just compiled a new .aar of the current master branch (commit: 694dd49) but unfortunately my android app still crashes as soon as I try to set a connection logger with the following error:
I know it is a long time ago but can you remember how you compiled your .aar ? Like which NDK version, which SDK version, any modifications to the build.sh file and so on? Any help would be greatly appreciated. |
@2h4u Hey, Sorry for the late response. I was compiling this using my old laptop and as I remember it does not work with new NSK versions. I will check out NDK version and let you know |
@farnabaz Hey thanks for replying 😄 Everything was working fine but as soon as I tried to set a connection logger I got the error I described in my first post (#1787 (comment)) I thank you in advance for looking into this again |
@farnabaz no worries 😄 |
Gladly 🙂 Here is the .aar that I used for my project. https://drive.google.com/file/d/1giSDOqpm6dpJ5i1W-93mR76Y-7SKgUys/view?usp=sharing The generation date was the exact date of this PR. Oct 5, 2018. |
Thanks for sharing!
Did you manage to set the |
@2h4u If you are getting the same error that for sure I didn't use I was looking at changes of this PR and I just realized something that might help. Could you replace "J" with "Lcom/libmailcore/ConnectionLogger" in
and check the result. You can find files in cahnges tab |
@farnabaz Thanks for the tipp! |
@farnabaz I finally managed to try it out but unfortunately it still crashes, this time with the following error:
I tried to investigate the problem but my JNI skills are pretty much non existent, so I'm having a hard time figuring out what the problem is. Nevertheless, thank you for you time and effort! |
Its good to have progressListener on every IMAPOperationOperation, but its sad to see this feature is not functioning and using
setProgressListener
cause app crashAfter digging inside mailcore2, Finally I could fix this issue
getObjectField
in order to specify field class (Wrong JNI type in getField: Not Long but Java Object #1482)Fix #1586