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

关于view的操作的bug #6

Closed
HolmesBill opened this issue Aug 3, 2021 · 2 comments
Closed

关于view的操作的bug #6

HolmesBill opened this issue Aug 3, 2021 · 2 comments

Comments

@HolmesBill
Copy link

view.visible()
我看源码这里是返回一个VIew.VISIBLE,是一个Int类型,并不能改变view,这里应该是一个bug吧
应该写成
inline fun View.visible() {
setVisibility(View.VISIBLE)
}

@Quyunshuo
Copy link
Contributor

view.visible()
我看源码这里是返回一个VIew.VISIBLE,是一个Int类型,并不能改变view,这里应该是一个bug吧
应该写成
inline fun View.visible() {
setVisibility(View.VISIBLE)
}

起初我以为是作者有其他用意,我看了下文档确定可能是作者写的时候没有注意,我修改了这个问题提交了PR

@hi-dhl
Copy link
Owner

hi-dhl commented Aug 3, 2021

@HolmesBill @Quyunshuo 感谢反馈和提交 PR 已经合入

@hi-dhl hi-dhl closed this as completed Aug 3, 2021
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

3 participants