Skip to content

Commit

Permalink
修改强制更新策略:点击返回键直接返回桌面
Browse files Browse the repository at this point in the history
  • Loading branch information
WVector committed Jul 10, 2017
1 parent c1d7afa commit 68c5586
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

```gradle
dependencies {
compile 'com.qianwen:update-app:3.2.3'
compile 'com.qianwen:update-app:3.2.4'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void showDialog() {
/**
* 检测是否有新版本
*
* @param callback
* @param callback 更新回调
*/
public void checkNewApp(final UpdateCallback callback) {
if (callback == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public interface DownloadCallback {
public class DownloadBinder extends Binder {
/**
* 开始下载
* @param updateApp 新app信息
* @param callback 下载回调
*/
public void start(UpdateAppBean updateApp, DownloadCallback callback) {
//初始化通知栏
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ public static void setTextStrokeTheme(TextView textView) {

/**
* 默认空心 设置TextView 主题,随机颜色
*
* @param textView textView
* @param textView 文本控件
* @param color 颜色
*/
public static void setTextStrokeTheme(TextView textView, int color) {
setTextStrokeTheme(textView, 6, 10, color);
Expand Down

0 comments on commit 68c5586

Please sign in to comment.