|
@@ -458,7 +458,7 @@ public class SysAppUtil {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
boolean isNewApp;
|
|
boolean isNewApp;
|
|
|
- if(TextUtils.equals("sheep", BuildConfig.FLAVOR)) {
|
|
|
|
|
|
|
+ if(TestUtil.isSheep()) {
|
|
|
if(ignoreMd5 != null && TextUtils.equals(ignoreMd5, version.getVersion_number()+"") && !version.isForceUpdate()){
|
|
if(ignoreMd5 != null && TextUtils.equals(ignoreMd5, version.getVersion_number()+"") && !version.isForceUpdate()){
|
|
|
LogUtil.println("showVersionInfo", "忽略", ignoreMd5, version.getVersion_name());
|
|
LogUtil.println("showVersionInfo", "忽略", ignoreMd5, version.getVersion_name());
|
|
|
if(action1 != null)
|
|
if(action1 != null)
|
|
@@ -550,7 +550,7 @@ public class SysAppUtil {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if(version.isForceUpdate()){//强更
|
|
|
|
|
|
|
+ if(version.isForceUpdate() && TestUtil.isSheep()){//强更
|
|
|
dialogConfig.setCancelable(false);
|
|
dialogConfig.setCancelable(false);
|
|
|
} else {
|
|
} else {
|
|
|
dialogConfig.setBtnRightText("下次更新").setBtnRightOnClickListener(new View.OnClickListener() {
|
|
dialogConfig.setBtnRightText("下次更新").setBtnRightOnClickListener(new View.OnClickListener() {
|