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

HomeFragment 文件处理为空判断 #16

Open
mikite opened this issue May 23, 2019 · 0 comments
Open

HomeFragment 文件处理为空判断 #16

mikite opened this issue May 23, 2019 · 0 comments

Comments

@mikite
Copy link

mikite commented May 23, 2019

fun getArrayIds(startId: String? = null): Array? {
val f = pagerAdapter.getItem(mBinding.viewPager.currentItem)
/* if (f != null){
require(f is ArticleListFragment)
return f.getArrayIds(startId)
}else{
return null
}
*/
when (f!= null){
true ->
when (f is ArticleListFragment) {
true -> return f.getArrayIds(startId)
}
false -> return null
}
return null

}

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

1 participant