Merge "Resurrecting sessions when AiAi is bound for the first time" into sc-dev

This commit is contained in:
Shashwat Razdan
2021-05-08 00:06:42 +00:00
committed by Android (Google) Code Review

View File

@@ -87,7 +87,10 @@ public class SmartspacePerUserService extends
protected boolean updateLocked(boolean disabled) { protected boolean updateLocked(boolean disabled) {
final boolean enabledChanged = super.updateLocked(disabled); final boolean enabledChanged = super.updateLocked(disabled);
if (enabledChanged) { if (enabledChanged) {
if (!isEnabledLocked()) { if (isEnabledLocked()) {
// Send the pending sessions over to the service
resurrectSessionsLocked();
} else {
// Clear the remote service for the next call // Clear the remote service for the next call
updateRemoteServiceLocked(); updateRemoteServiceLocked();
} }