Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdqianlei1990 committed Mar 2, 2017
1 parent 2b563be commit 6cdb896
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ public void checkUpdate(String versionCode,String link,boolean focusUpgrade){
boolean needUpdate = Util.needUpdate(versionCode);
//String authority = "com.upgrade.channey.test.fileProvider"; //7.0版本,值和manifest中provider的authority一致
String authority = ""; //7.0以下版本authority可为空,可直接传null
       if(needUpdate){
UpgradeDialog.getInstance(this).focusUpdate(focusUpgrade).show("发现新版本",link,authority);
if(needUpdate){
UpgradeDialog.getInstance(this)
.focusUpdate(focusUpgrade)
.setOnNegativeButtonClickListener(new UpgradeDialog.OnNegativeButtonClickListener() {
@Override
public void onClick() {
// TODO: 2017/3/2
}
})
.show("发现新版本",link,authority);
}
}
```
##什么是authority?
authority是content provider中定义的
Expand Down

0 comments on commit 6cdb896

Please sign in to comment.