From 635fa4950db8ce404ea1e8ded980e8a900e24c46 Mon Sep 17 00:00:00 2001 From: thermatk Date: Sun, 21 Apr 2024 19:49:43 +0200 Subject: [PATCH] [TF] kill more billing --- .../java/org/telegram/ui/Components/ChatActivityEnterView.java | 3 ++- .../src/main/java/org/telegram/ui/ProfileActivity.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatActivityEnterView.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatActivityEnterView.java index fd3070d7f..5bd8a70a3 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatActivityEnterView.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/ChatActivityEnterView.java @@ -3402,6 +3402,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto if (user == null) return; ArrayList options = new ArrayList<>(getParentFragment().getCurrentUserInfo().premium_gifts); if (options.isEmpty()) { + /* final AlertDialog progressDialog = new AlertDialog(getContext(), AlertDialog.ALERT_TYPE_SPINNER); final int reqId = BoostRepository.loadGiftOptions(null, loadedOptions -> { progressDialog.dismiss(); @@ -3414,7 +3415,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto progressDialog.setOnCancelListener(di -> { parentFragment.getConnectionsManager().cancelRequest(reqId, true); }); - progressDialog.showDelayed(200); + progressDialog.showDelayed(200);*/ } else { new GiftPremiumBottomSheet(getParentFragment(), getParentFragment().getCurrentUser()).show(); } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java index 29ee28553..7e4fe55d1 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ProfileActivity.java @@ -12567,7 +12567,7 @@ private void onTextDetailCellImageClicked(View view) { ArrayList options = new ArrayList<>(userInfo.premium_gifts); if (options.isEmpty()) { if (getVisibleDialog() != null) return; - final AlertDialog progressDialog = new AlertDialog(getContext(), AlertDialog.ALERT_TYPE_SPINNER); + /*final AlertDialog progressDialog = new AlertDialog(getContext(), AlertDialog.ALERT_TYPE_SPINNER); final int reqId = BoostRepository.loadGiftOptions(null, loadedOptions -> { progressDialog.dismiss(); if (getVisibleDialog() != null) return; @@ -12581,6 +12581,7 @@ private void onTextDetailCellImageClicked(View view) { getConnectionsManager().cancelRequest(reqId, true); }); progressDialog.showDelayed(500); + */ } else { showDialog(new GiftPremiumBottomSheet(this, user)); }