We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
朋友圈图片显示大图时,如果图片加载不出或者图片链接不存在试,点击返回键无效,无法返回,你可以放一个不存在的图片链接试试
The text was updated successfully, but these errors were encountered:
@112721933
谢谢反馈,已经修复了(push到了main-dev分支,迟点合并到主分支)
这次的问题出现在GalleryPhotoView的playExitAnimaInternal()方法中
GalleryPhotoView
playExitAnimaInternal()
在该方法中我有两个判断:
private void playExitAnimaInternal(final Rect to, @Nullable View alphaView) { if (isPlayingEnterAnima || to == null || mAttacher == null) { return; } ...略 if (drawableBounds == null) { return; } ...略 }
其中第一行的return基本不会出现,问题在于第二个return
如您所说,当图片无法加载,意味着drawableBounds 为null,此时直接被我return了,这导致了PhotoBrowseActivity的finish()里的currentPhotoView无法回调到onExitAnimaEnd(),也就无法finish当前activity了
drawableBounds
PhotoBrowseActivity
finish()
onExitAnimaEnd()
解决方法就是在return之前添加上回调,或者finish里最后一行添加super.finish()以保证finish绝对成功执行,我采取的是前者。
谢谢您的反馈-V-
Sorry, something went wrong.
//fix #41
cb621eb
如果没什么问题,该issue由你关闭了哦
d1b9bbb
No branches or pull requests
朋友圈图片显示大图时,如果图片加载不出或者图片链接不存在试,点击返回键无效,无法返回,你可以放一个不存在的图片链接试试
The text was updated successfully, but these errors were encountered: