|
@@ -227,10 +227,12 @@ public class ApexTrackingApplication extends Application
|
|
|
.show();
|
|
.show();
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- new AlertDialog.Builder(app.mCurrentActivity)
|
|
|
|
|
- .setMessage("Your App is the latest version")
|
|
|
|
|
- .setNegativeButton("Ok",null)
|
|
|
|
|
- .show();
|
|
|
|
|
|
|
+ if (!app.mSilence) {
|
|
|
|
|
+ new AlertDialog.Builder(app.mCurrentActivity)
|
|
|
|
|
+ .setMessage("Your App is the latest version")
|
|
|
|
|
+ .setNegativeButton("Ok",null)
|
|
|
|
|
+ .show();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} catch (JSONException e) {
|
|
} catch (JSONException e) {
|
|
@@ -238,6 +240,8 @@ public class ApexTrackingApplication extends Application
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ app.mSilence = true;
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -262,10 +266,12 @@ public class ApexTrackingApplication extends Application
|
|
|
downloadManager.enqueue(request);
|
|
downloadManager.enqueue(request);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public void checkUpdate(boolean showProgress,String alertMsg) {
|
|
|
|
|
- if (showProgress) {
|
|
|
|
|
|
|
+ private boolean mSilence = true;
|
|
|
|
|
+ public void checkUpdate(boolean silence,String alertMsg) {
|
|
|
|
|
+ if (!silence) {
|
|
|
showProgressDialog(alertMsg);
|
|
showProgressDialog(alertMsg);
|
|
|
}
|
|
}
|
|
|
|
|
+ mSilence = silence;
|
|
|
new Thread(new Runnable() {
|
|
new Thread(new Runnable() {
|
|
|
@Override
|
|
@Override
|
|
|
public void run() {
|
|
public void run() {
|