Bug:Travel-Mate[v,5.5.0]App crashed when I use the notification and mark all notification.
Project Information
Repository:
https://github.com/project-travel-mate/Travel-MateProject Name: Travel-mate
The issue submitted on GitHub: https://github.com/project-travel-mate/Travel-Mate/issues/665
My github link: https://github.com/darewealth
Describe the bug.
The app crashed when I tried to use the notification and then mark all notification as read. It happens most time when there is not any message on the notification
Steps to reproduce.
Launch the app.
Click on the notification icon
And click on the mark all icon at the top by the right
It will pop up "Do you want to mark all notification as read? "
Then click ok
And note the bug
Expected Behaviour
I expect that the app should work normally and not to see a crash on the action.
Screen recording
Devices and Versions):)
Device: [Gionee]
Version [7.0]
App version [5.5.0]
Log
Process: io.github.project_travel_mate, PID: 26375
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=203, result=-1, data=Intent { (has extras) }} to activity {io.github.project_travel_mate/io.github.project_travel_mate.Notification}: java.lang.IllegalStateException: Notification is already initialized
at android.app.ActivityThread.deliverResults(ActivityThread.java:3714)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3757)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1394)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5452)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)```
Hi @darewealth, thanks for making this report.
The real issue in this case - is the availability of the option to mark all notifications even when the messages are empty. This option should only be available when you have more than one notification message.
The crash as seen from the line above is as a result of triggering an action that is contrary to what is expected. To break it down, the argument expected was a list of marked items, but instead it got null and so an exception was thrown.
Again, thanks for this report. I look forward to more of your contributions.
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Need help? Chat with us on Discord.
[utopian-moderator]
Thank you for your review, @fego! Keep up the good work!
Hi @darewealth!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server
Hey, @darewealth!
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!
Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!