Skip to content

Commit

Permalink
修改List 部分错误回调
Browse files Browse the repository at this point in the history
  • Loading branch information
Jude95 committed Jun 25, 2016
1 parent bc704dd commit 8aefe41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Beam 是一套基于MVP模式的快速开发框架。定义了一套开发规范。并提供了基于这套规范的Activity,Fragment,Presenter,Model等父类及控件和API等,完成APP开发过程中大量繁琐工作。

##依赖
`compile 'com.jude:beam:2.9.8'`
`compile 'com.jude:beam:3.0.0'`

##MVP概念
MVP模式在Android开发中的使用越来越流行,它十分适合Android。最好先看看[本框架对MVP的理解](http://www.jianshu.com/p/ed2aa9546c2c)
Expand Down
2 changes: 1 addition & 1 deletion beam/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ext {
gitUrl = 'https://github.com/Jude95/RequestVolley'


libraryVersion = '2.9.8'//版本号
libraryVersion = '3.0.0'//版本号
libraryName = 'beam'//项目名字,没什么用
libraryDescription = 'A framwork for Android'//项目描述,没什么用

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public void onCompleted() {

@Override
public void onError(Throwable e) {
getView().stopRefresh();
if (mAdapter!=null&&mAdapter.getCount()==0){
//没有数据的时候出错,就显示全屏的错误提示
getView().stopRefresh();
getView().showError(e);
}else {
//有数据时的出错,在最后一条显示错误提示
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public void onCompleted() {

@Override
public void onError(Throwable e) {
getView().stopRefresh();
if (mAdapter!=null&&mAdapter.getCount()==0){
//没有数据的时候出错,就显示全屏的错误提示
getView().stopRefresh();
getView().showError(e);
}else {
//有数据时的出错,在最后一条显示错误提示
Expand Down

0 comments on commit 8aefe41

Please sign in to comment.