Italian ice

This commit is contained in:
An Bui 2025-03-10 14:26:59 +07:00
parent f34bf10b9e
commit 866c71b629
6 changed files with 44 additions and 1 deletions

View file

@ -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")))