Reset SAS for device transfer on reconnect and hard abort if disconnected during transfer.

This commit is contained in:
Cody Henthorne
2026-06-09 17:21:48 -04:00
parent 6d260ab63d
commit 9478cdf049
3 changed files with 40 additions and 7 deletions
@@ -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() {