Closed haroldadmin closed 4 years ago
hi @haroldadmin I would like to work on this issue.Can I Raise the PR?
Thank you for expressing your interest in the issue. Before you start working on it, it would be great to know your plan for fixing it.
So the idea is to have a button below Share Stack trace. Add a click listener on the button. create launch intent to launch application again using packagemanager. Clear the entire history stack and start the launcher activity using intent.
Sounds good! I still have a small question though. Launching an application from the package manager requires you to know its package name. How do you plan on determining it?
context.packageName will return application package name.
Thanks for info.
context.packageName
returns the package name of the library, or of the application using it. I just checked and it does indeed return the package name of its application.Intent.FLAG_ACTIVITY_CLEAR_TASK
to the intent to ensure that users can not go back to WhatTheStackActivity
after starting the app.Assigning the issue to you now :)
Does the ui looks good to you or please suggest from where should i get icon.
Good work! I think this icon conveys the "restart" intention better: https://material.io/resources/icons/?search=refresh&icon=refresh&style=outline
Thank you so much @haroldadmin. Raised the PR please check.
The crash screen should provide the user with the ability to restart the app.
Tasks:
I am not sure how this would affect the task-stack. Might need to fiddle with launch options to fix unexpected behaviours.