Skip to content

Commit

Permalink
[TF] kill more billing
Browse files Browse the repository at this point in the history
  • Loading branch information
thermatk committed May 17, 2024
1 parent 278d9f0 commit 635fa49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3402,6 +3402,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
if (user == null) return;
ArrayList<TLRPC.TL_premiumGiftOption> 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();
Expand All @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12567,7 +12567,7 @@ private void onTextDetailCellImageClicked(View view) {
ArrayList<TLRPC.TL_premiumGiftOption> 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;
Expand All @@ -12581,6 +12581,7 @@ private void onTextDetailCellImageClicked(View view) {
getConnectionsManager().cancelRequest(reqId, true);
});
progressDialog.showDelayed(500);
*/
} else {
showDialog(new GiftPremiumBottomSheet(this, user));
}
Expand Down

0 comments on commit 635fa49

Please sign in to comment.