check for standalone in showUpdateAppAlert()

This commit is contained in:
Younes-L 2021-09-11 11:45:17 +01:00 committed by GitHub
parent 02edaec2c6
commit 5fb9220703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -379,7 +379,7 @@ public class AlertsCreator {
builder.setMessage(text);
builder.setPositiveButton(LocaleController.getString("OK", R.string.OK), null);
if (updateApp) {
builder.setNegativeButton(LocaleController.getString("UpdateApp", R.string.UpdateApp), (dialog, which) -> Browser.openUrl(context, BuildVars.PLAYSTORE_APP_URL));
builder.setNegativeButton(LocaleController.getString("UpdateApp", R.string.UpdateApp), (dialog, which) -> Browser.openUrl(context, isStandaloneApp() ? BuildVars.DIRECT_APP_URL : BuildVars.PLAYSTORE_APP_URL));
}
return builder.show();
}