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

滑动返回时有时候屏幕会闪一下 #14

Open
ArtisanM opened this issue Oct 19, 2016 · 4 comments
Open

滑动返回时有时候屏幕会闪一下 #14

ArtisanM opened this issue Oct 19, 2016 · 4 comments

Comments

@ArtisanM
Copy link

ArtisanM commented Oct 19, 2016

在完成动画后屏幕会闪一下,非必现,但是出现概率很高

@ArtisanM
Copy link
Author

测试了一下发现应该是兼容性问题,公司另外几个测试机都不闪,就oppo R7 Plus Android5.1.1这个机型上出现这个问题。

@XBeats
Copy link
Owner

XBeats commented Oct 24, 2016

恩,是的。现在的方法我也是在许多手机上试过的,不过还是不能满足所有机型,只能慢慢兼容吧

@g707175425
Copy link

@XBeats 暂时解决啦,这个bug主要是因为finish activity的时候并不是立即destroy的,所以中间会有段时间在ActivityLifecycleHelper.activities 中会储存已经finish掉的activity,这时进行页面绘制的时候其实绘制的是finish掉但没有destroy掉的activity,如下加上几行代码解决了
image

image

@lfkdsk
Copy link

lfkdsk commented Feb 9, 2018

fix it: #35

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

4 participants