Skip to content

Commit

Permalink
Improve Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYanCoding committed May 6, 2017
1 parent d915067 commit de8999e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ public UserPresenter(UserContract.Model model, UserContract.View rootView, RxErr
this.mApplication = application;
this.mErrorHandler = handler;
this.mAppManager = appManager;
mAdapter = new UserAdapter(mUsers);
mRootView.setAdapter(mAdapter);//设置Adapter
}

public void requestUsers(final boolean pullToRefresh) {
if (mAdapter == null) {
mAdapter = new UserAdapter(mUsers);
mRootView.setAdapter(mAdapter);//设置Adapter
}

//请求外部存储权限用于适配android6.0的权限管理机制
PermissionUtil.externalStorage(() -> {
//request permission success, do something.
Expand Down

0 comments on commit de8999e

Please sign in to comment.