From 5fb9220703fa65dc76dab1d915e6a13f4361ec2a Mon Sep 17 00:00:00 2001 From: Younes-L Date: Sat, 11 Sep 2021 11:45:17 +0100 Subject: [PATCH] check for standalone in showUpdateAppAlert() --- .../src/main/java/org/telegram/ui/Components/AlertsCreator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java index 82ebee4c1..92136a116 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/AlertsCreator.java @@ -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(); }