Skip to content

Commit

Permalink
修复无Presenter时的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jude95 committed Jan 23, 2016
1 parent b962b2c commit f01203d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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.5.9'`
`compile 'com.jude:beam:2.6.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 @@ -31,7 +31,7 @@ ext {
gitUrl = 'https://github.com/Jude95/RequestVolley'


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

Expand Down
3 changes: 2 additions & 1 deletion beam/src/main/java/com/jude/beam/bijection/ViewHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ void onPostCreate(){
}

void onDestroyView(){
presenter.onDestroyView();
if (ensurePresenterInstance())
presenter.onDestroyView();
}

void onDestroy(){
Expand Down

0 comments on commit f01203d

Please sign in to comment.