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
Undo/Redo may be crash #11
Comments
It's important to call |
I fork develop branch, nothing to modified, but when you |
I can not found canRedo() or canUndo() in call strack:
|
Reproduce step:
|
When I change the text many times, I want quickly/fastly undo, but it crashed.😂😂😂 |
@liyujiang-gzu Still cannot reproduce 😔 Could you modify these methods and check it? override fun onUndoButton() {
if (binding.editor.canUndo()) {
binding.editor.undo()
}
}
override fun onRedoButton() {
if (binding.editor.canRedo()) {
binding.editor.redo()
}
} If everything will be fine, then I'll merge your PR into develop |
A great idea. I think the reason was:
I modified the above methods, It‘s works to fine, Clicking too fast will no longer cause a crash |
Alright, I'll change it later, but if you want you can make pull request with these changes |
I'll PR it later. |
Please consider making a Pull Request if you are capable of doing so.
App Version:
2020.2.2 Develop branch, means all version has the bug.
Affected Device(s):
ViVo x27 with Android 10
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crash.
The text was updated successfully, but these errors were encountered: