Skip to content

Commit 68c5586

Browse files
committed
修改强制更新策略:点击返回键直接返回桌面
1 parent c1d7afa commit 68c5586

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
```gradle
4646
dependencies {
47-
compile 'com.qianwen:update-app:3.2.3'
47+
compile 'com.qianwen:update-app:3.2.4'
4848
}
4949
```
5050

update-app/src/main/java/com/vector/update_app/UpdateAppManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void showDialog() {
8787
/**
8888
* 检测是否有新版本
8989
*
90-
* @param callback
90+
* @param callback 更新回调
9191
*/
9292
public void checkNewApp(final UpdateCallback callback) {
9393
if (callback == null) {

update-app/src/main/java/com/vector/update_app/service/DownloadService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ public interface DownloadCallback {
149149
public class DownloadBinder extends Binder {
150150
/**
151151
* 开始下载
152+
* @param updateApp 新app信息
153+
* @param callback 下载回调
152154
*/
153155
public void start(UpdateAppBean updateApp, DownloadCallback callback) {
154156
//初始化通知栏

update-app/src/main/java/com/vector/update_app/utils/DrawableUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ public static void setTextStrokeTheme(TextView textView) {
224224

225225
/**
226226
* 默认空心 设置TextView 主题,随机颜色
227-
*
228-
* @param textView textView
227+
* @param textView 文本控件
228+
* @param color 颜色
229229
*/
230230
public static void setTextStrokeTheme(TextView textView, int color) {
231231
setTextStrokeTheme(textView, 6, 10, color);

0 commit comments

Comments
 (0)