mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-07 13:55:56 +01:00
Reset SAS for device transfer on reconnect and hard abort if disconnected during transfer.
This commit is contained in:
+3
-1
@@ -24,7 +24,9 @@ public final class DeviceTransferSetupViewModel extends ViewModel {
|
||||
|
||||
public DeviceTransferSetupViewModel() {
|
||||
this.store = new Store<>(new DeviceSetupState());
|
||||
this.distinctStepChanges = LiveDataUtil.distinctUntilChanged(this.store.getStateLiveData(), (current, next) -> current.getCurrentSetupStep() == next.getCurrentSetupStep());
|
||||
this.distinctStepChanges = LiveDataUtil.distinctUntilChanged(this.store.getStateLiveData(),
|
||||
(current, next) -> current.getCurrentSetupStep() == next.getCurrentSetupStep() &&
|
||||
current.getAuthenticationCode() == next.getAuthenticationCode());
|
||||
}
|
||||
|
||||
public @NonNull LiveData<DeviceSetupState> getState() {
|
||||
|
||||
Reference in New Issue
Block a user