Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Oct 2, 2018
1 parent 60e9964 commit c060c0d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ protected void initData() {
}
}

/**
* 控件绑定
*/
@Override
protected void bindView() {
super.bindView();
tvInstallUpdate.setOnClickListener(view -> {
String url = updateInfo.getUrl();
String fileName = url.substring(url.lastIndexOf("/"));
File apkFile = new File(UpdateManager.getSavePath(fileName));
UpdateManager.getInstance(this).installApk(apkFile);
});
}

//设置ToolBar
private void setupActionBar() {
ActionBar actionBar = getSupportActionBar();
Expand Down

0 comments on commit c060c0d

Please sign in to comment.