Skip to content

Commit 986f3e1

Browse files
committed
[UI] Remove checkAppUpdate calls from ChannelAdminLogActivity
The fork's LaunchActivity does not have checkAppUpdate(), causing Java compilation errors. Drop the isStandaloneBuild() branch from both didPressAppUpdateButton() implementations.
1 parent a507d32 commit 986f3e1

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

TMessagesProj/src/main/java/org/telegram/ui/ChannelAdminLogActivity.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,11 +2930,7 @@ public boolean shouldShowTopicButton(ChatMessageCell cell) {
29302930

29312931
@Override
29322932
public void didPressAppUpdateButton() {
2933-
if (ApplicationLoader.isStandaloneBuild()) {
2934-
if (LaunchActivity.instance != null) {
2935-
LaunchActivity.instance.checkAppUpdate(true, null);
2936-
}
2937-
} else if (BuildVars.isHuaweiStoreApp()) {
2933+
if (BuildVars.isHuaweiStoreApp()) {
29382934
Browser.openUrl(getContext(), BuildVars.HUAWEI_STORE_URL);
29392935
} else {
29402936
Browser.openUrl(getContext(), BuildVars.PLAYSTORE_APP_URL);
@@ -3421,11 +3417,7 @@ public void didPressReplyMessage(ChatActionCell cell, int id) {
34213417
cell.setDelegate(new ChatMessageCell.ChatMessageCellDelegate() {
34223418
@Override
34233419
public void didPressAppUpdateButton() {
3424-
if (ApplicationLoader.isStandaloneBuild()) {
3425-
if (LaunchActivity.instance != null) {
3426-
LaunchActivity.instance.checkAppUpdate(true, null);
3427-
}
3428-
} else if (BuildVars.isHuaweiStoreApp()) {
3420+
if (BuildVars.isHuaweiStoreApp()) {
34293421
Browser.openUrl(getContext(), BuildVars.HUAWEI_STORE_URL);
34303422
} else {
34313423
Browser.openUrl(getContext(), BuildVars.PLAYSTORE_APP_URL);

0 commit comments

Comments
 (0)