mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-29 23:09:48 +00:00
Italian ice
This commit is contained in:
parent
f34bf10b9e
commit
866c71b629
6 changed files with 44 additions and 1 deletions
|
|
@ -743,8 +743,15 @@ public class MainActivity extends AppCompatActivity {
|
|||
PackageInfo pinfo = getAppInfo(getApplicationContext());
|
||||
int versionCode = pinfo.versionCode;
|
||||
String versionName = pinfo.versionName;
|
||||
String versionNameonUpdate;
|
||||
|
||||
if (versionCode < obj.getInt("versionCode") || !obj.getString("versionName").contains(versionName)) {
|
||||
if (MainSettingsManager.getcheckforupdatesfromthebetachannel(activity)) {
|
||||
versionNameonUpdate = obj.getString("versionNameBeta");
|
||||
} else {
|
||||
versionNameonUpdate = obj.getString("versionName");
|
||||
}
|
||||
|
||||
if (versionCode < obj.getInt("versionCode") || !versionNameonUpdate.contains(versionName)) {
|
||||
AlertDialog.Builder alert = new AlertDialog.Builder(activity, R.style.MainDialogTheme);
|
||||
alert.setTitle("Install the latest version")
|
||||
.setMessage(Html.fromHtml(obj.getString("Message") + "<br><br>update size:<br>" + obj.getString("size")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue