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

bind的时候为啥要写this.changeUiStatus(1);这一句啊,去掉好吗? #12

Open
zhusp1990 opened this issue May 29, 2020 · 2 comments

Comments

@zhusp1990
Copy link

zhusp1990 commented May 29, 2020

public UiStatusController bind(@NonNull Object target) { this.mUiStatusLayout = BindHelp.bind(target); this.mUiStatusLayout.setUiStatusProvider(this); this.changeUiStatus(1);//为啥要加入这一句啊,去掉好吗?这一下造成了很多问题,可扩展性一下子降低了 return this; }
@FengChenSunshine

@zhusp1990
Copy link
Author

public UiStatusController bind(@nonnull Object target) {
this.mUiStatusLayout = BindHelp.bind(target);
this.mUiStatusLayout.setUiStatusProvider(this);
this.changeUiStatus(1);
return this;
}

@FengChenSunshine
Copy link
Owner

你好,考虑到绝大部分场景进入都是loading页面,所以默认加载了loading状态,
后面会类似UiStatusController.setAutoLoadingWithRetry重试机制一样 给一个允许关闭的方法

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