Sync facilitators on transport ready

This avoids depending on the phone side to have the ICS / connection
services up at the time the user wants to place a call on the remote
device.

Bug: 280604855
Test: atest
Change-Id: I02fb643bb648cd3538d1ece0322f6aebf7286058
This commit is contained in:
Christine Franks
2023-05-12 14:57:12 +00:00
parent acba2b3a79
commit e6bcb2bad3

View File

@@ -130,6 +130,8 @@ public class CrossDeviceSyncController {
callback.requestCrossDeviceSync(associationInfo);
} else {
Slog.w(TAG, "No callback to report new transport");
syncMessageToDevice(associationInfo.getId(),
createFacilitatorMessage());
}
} else {
mBlocklist.add(associationInfo.getId());
@@ -169,6 +171,8 @@ public class CrossDeviceSyncController {
callback.requestCrossDeviceSync(associationInfo);
} else {
Slog.w(TAG, "No callback to report changed transport");
syncMessageToDevice(associationInfo.getId(),
createFacilitatorMessage());
}
} else {
Slog.i(TAG, "Blocking existing association for context sync");