kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix network on main thread crash.
rodzic
d3572f92f5
commit
b82f6f83ec
|
@ -304,6 +304,7 @@ public final class RegistrationViewModel extends BaseRegistrationViewModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
return verifyAccountRepository.registerAccount(null, registrationData, null, null)
|
return verifyAccountRepository.registerAccount(null, registrationData, null, null)
|
||||||
|
.observeOn(Schedulers.io())
|
||||||
.onErrorReturn(ServiceResponse::forUnknownError)
|
.onErrorReturn(ServiceResponse::forUnknownError)
|
||||||
.map(VerifyResponseWithoutKbs::new)
|
.map(VerifyResponseWithoutKbs::new)
|
||||||
.flatMap(processor -> {
|
.flatMap(processor -> {
|
||||||
|
@ -329,8 +330,7 @@ public final class RegistrationViewModel extends BaseRegistrationViewModel {
|
||||||
} else {
|
} else {
|
||||||
return Single.just(processor);
|
return Single.just(processor);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
.observeOn(AndroidSchedulers.mainThread());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public @NonNull Single<Boolean> canEnterSkipSmsFlow() {
|
public @NonNull Single<Boolean> canEnterSkipSmsFlow() {
|
||||||
|
|
Ładowanie…
Reference in New Issue