|
@@ -211,10 +211,9 @@ public class ApexTrackingApplication extends Application
|
|
|
|
|
|
|
|
final String ver = jsonObject.optString("ver");
|
|
final String ver = jsonObject.optString("ver");
|
|
|
final String url = jsonObject.optString("url");
|
|
final String url = jsonObject.optString("url");
|
|
|
|
|
+ int result = jsonObject.optInt("result",0);
|
|
|
|
|
|
|
|
- if (ver != null && url != null) {
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (result == 2 && ver != null && url != null) {
|
|
|
|
|
|
|
|
new AlertDialog.Builder(app.mCurrentActivity)
|
|
new AlertDialog.Builder(app.mCurrentActivity)
|
|
|
.setMessage("There is a new version " + ver + " ,are you ready to update it?")
|
|
.setMessage("There is a new version " + ver + " ,are you ready to update it?")
|