1
0
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:
luvletter2333 2021-04-25 00:18:14 +08:00
parent 6cec982eee
commit e0f548e3e0
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -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>