From 988eb00623fb5b82b000e447b916c8e8b18cf3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 20 Apr 2021 19:20:30 +0800 Subject: [PATCH] Fix login with test numbers --- .../src/main/java/org/telegram/ui/LoginActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java index 6b009323f..7f7ca0c93 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java @@ -1971,9 +1971,9 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No FileLog.e(e); } if (syncContacts) { - BulletinFactory.of((FrameLayout) fragmentView).createSimpleBulletin(R.raw.contacts_sync_on, LocaleController.getString("SyncContactsOn", R.string.SyncContactsOn)).show(); + BulletinFactory.of((FrameLayout) fragmentView).createSimpleBulletin(R.raw.contacts_sync_on, LocaleController.getString("SyncContactsOn", R.string.SyncContactsOn)).show(); } else { - BulletinFactory.of((FrameLayout) fragmentView).createSimpleBulletin(R.raw.contacts_sync_off, LocaleController.getString("SyncContactsOff", R.string.SyncContactsOff)).show(); + BulletinFactory.of((FrameLayout) fragmentView).createSimpleBulletin(R.raw.contacts_sync_off, LocaleController.getString("SyncContactsOff", R.string.SyncContactsOff)).show(); } } }); @@ -2175,7 +2175,7 @@ public class LoginActivity extends BaseFragment implements NotificationCenter.No String dcId = phone.substring(5, 6); final TLRPC.TL_auth_signIn reqI = new TLRPC.TL_auth_signIn(); reqI.phone_number = phone; - reqI.phone_code = dcId + dcId + dcId + dcId + dcId; + reqI.phone_code = dcId + dcId + dcId + dcId + dcId + dcId; reqI.phone_code_hash = phoneHash; int reqIdI = ConnectionsManager.getInstance(currentAccount).sendRequest(reqI, (responseI, errorI) -> AndroidUtilities.runOnUIThread(() -> { boolean ok = false;