|
29 | 29 | import net.coding.program.common.GlobalCommon; |
30 | 30 | import net.coding.program.common.GlobalData; |
31 | 31 | import net.coding.program.common.SimpleSHA1; |
| 32 | +import net.coding.program.common.event.EventLoginSuccess; |
32 | 33 | import net.coding.program.common.model.AccountInfo; |
33 | 34 | import net.coding.program.common.model.EnterpriseDetail; |
34 | 35 | import net.coding.program.common.model.EnterpriseInfo; |
|
41 | 42 | import net.coding.program.common.widget.LoginEditTextNew; |
42 | 43 | import net.coding.program.common.widget.input.SimpleTextWatcher; |
43 | 44 | import net.coding.program.compatible.CodingCompat; |
44 | | -import net.coding.program.guide.GuideActivity; |
45 | 45 | import net.coding.program.login.PhoneRegisterActivity_; |
46 | 46 | import net.coding.program.login.auth.AuthInfo; |
47 | 47 | import net.coding.program.login.auth.TotpClock; |
@@ -218,7 +218,7 @@ void register() { |
218 | 218 | @OnActivityResult(RESULT_CLOSE) |
219 | 219 | void resultRegiter(int result) { |
220 | 220 | if (result == Activity.RESULT_OK) { |
221 | | - sendBroadcast(new Intent(GuideActivity.BROADCAST_GUIDE_ACTIVITY)); |
| 221 | + EventLoginSuccess.Companion.sendMessage(); |
222 | 222 | finish(); |
223 | 223 | } |
224 | 224 | } |
@@ -456,7 +456,7 @@ private void jumpMainActivity() throws JSONException { |
456 | 456 | String companyName = enterpriseEdit.getText().toString(); |
457 | 457 | AccountInfo.saveLastCompanyName(this, companyName); |
458 | 458 |
|
459 | | - sendBroadcast(new Intent(GuideActivity.BROADCAST_GUIDE_ACTIVITY)); |
| 459 | + EventLoginSuccess.Companion.sendMessage(); |
460 | 460 | finish(); |
461 | 461 | startActivity(new Intent(this, CodingCompat.instance().getMainActivity())); |
462 | 462 | } |
|
0 commit comments