fix crashes

This commit is contained in:
luvletter2333 2023-03-28 12:10:09 +08:00
parent 31266a533d
commit 8fd846b099
No known key found for this signature in database
GPG Key ID: 9EB7723F3A0ACF92
2 changed files with 2 additions and 1 deletions

View File

@ -32968,6 +32968,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
private void nkbtn_onclick(int id) {
// from "items"
createUndoView();
switch (id) {
case nkbtn_repeat: {
repeatMessage(false);

View File

@ -1261,7 +1261,7 @@ public class PremiumPreviewFragment extends BaseFragment implements Notification
animated = false;
}
if (BuildVars.IS_BILLING_UNAVAILABLE) {
premiumButtonView.setButton(getPremiumButtonText(currentAccount, subscriptionTiers.get(selectedTierIndex)), v -> buyPremium(this), animated);
premiumButtonView.setButton(getPremiumButtonText(currentAccount, null), v -> buyPremium(this), animated);
return;
}
if (!BuildVars.useInvoiceBilling() && (!BillingController.getInstance().isReady() || subscriptionTiers.isEmpty() || selectedTierIndex >= subscriptionTiers.size() || subscriptionTiers.get(selectedTierIndex).googlePlayProductDetails == null)) {