mirror of
https://github.com/NekoX-Dev/NekoX.git
synced 2024-12-13 20:59:42 +01:00
Fix crashing when click payment button
This commit is contained in:
parent
6cec982eee
commit
e0f548e3e0
@ -2534,6 +2534,9 @@ public boolean retriedToSend;
|
||||
TLRPC.TL_urlAuthResultDefault res = (TLRPC.TL_urlAuthResultDefault) response;
|
||||
AlertsCreator.showOpenUrlAlert(parentFragment, button.url, false, true);
|
||||
}
|
||||
} else if (button instanceof TLRPC.TL_keyboardButtonBuy) {
|
||||
AndroidUtilities.runOnUIThread(() -> Toast.makeText(ApplicationLoader.applicationContext, R.string.nekoXPaymentRemovedToast, Toast.LENGTH_SHORT).show());
|
||||
// NekoX: The payment function has been removed.
|
||||
} else {
|
||||
TLRPC.TL_messages_botCallbackAnswer res = (TLRPC.TL_messages_botCallbackAnswer) response;
|
||||
if (!cacheFinal && res.cache_time != 0 && !button.requires_password) {
|
||||
|
@ -236,4 +236,5 @@
|
||||
<string name="BackupSettings">Backup settings</string>
|
||||
<string name="ImportSettings">Import settings</string>
|
||||
<string name="ImportSettingsAlert">Are you sure you want to overwrite the settings? Importing settings from unknown sources may cause the pin to be overwritten and cause the application to be locked.</string>
|
||||
<string name="nekoXPaymentRemovedToast">The payment function has been removed.</string>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user