mirror of
https://github.com/DrKLO/Telegram.git
synced 2025-01-03 09:49:15 +01:00
check for standalone in showUpdateAppAlert()
This commit is contained in:
parent
02edaec2c6
commit
5fb9220703
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue