Skip to content

Commit

Permalink
优化细节 提供 scrollTop方法
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxikang committed Sep 2, 2016
1 parent 22cdbcb commit 210a18a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.android.tools.build:gradle:2.2.0-beta2'
classpath 'com.android.tools.build:gradle:2.2.0-rc1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ public void scrollTop(){
protected void onDetachedFromWindow() {
Log.d("销毁","销毁");
super.onDetachedFromWindow();
mDispatchWebView.destroy();
mDispatchWebView=null;
if (mDispatchWebView!=null){
mDispatchWebView.destroy();
mDispatchWebView=null;
}

recyclerView=null;
}
}

0 comments on commit 210a18a

Please sign in to comment.