Skip to content
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

发现严重的闪退BUG #65

Open
weishubaoforwork opened this issue Apr 11, 2019 · 3 comments
Open

发现严重的闪退BUG #65

weishubaoforwork opened this issue Apr 11, 2019 · 3 comments

Comments

@weishubaoforwork
Copy link

weishubaoforwork commented Apr 11, 2019

文字在使用多种格式(例如:下划线,删除线,颜色)之后,在不换行情况下,直接导入图片,再次输入文字会闪退。
FULL TOP模式下

image

另外。添加图片之后,添加第二张或者第三张偶尔会出现闪退。

最后希望大神能出个保存草稿箱的功能,即点击按钮后,退出依然可以看到该文章

@chinalwb
Copy link
Owner

我看下这个闪退。

草稿功能本来是在计划内的,但个人情况有变所以只能无限期的推迟了。

@chinalwb
Copy link
Owner

这个闪退是Android 8中的一个bug造成的: https://issuetracker.google.com/issues/67102093

我开发过程中遇到了,看这个方法:
com.chinalwb.are.styles.ARE_Image#insertImage
其中我注释了一句代码:
// this.mEditText.useSoftwareLayerOnAndroid8();
这个就是解决这个bug的。
但是加上这句代码又会引起其他的问题,比如加了很多图片之后就无法正确显示了。
在Android 8上目前没找到合适的方法。
你可以在Android 9上试一下。

谢谢提出问题。

@weishubaoforwork
Copy link
Author

谢谢大神解决问题,因为项目忙,没有得到来得及时回复你,根据你的建议我恢复了该行代码后,增加了数量的逻辑判断,等到有合适的解决方案再进行修改,至于A 9,手上没有合适的测试手机,所以先暂时没办法测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants