Fixing the session resurrection issue in SmartspaceService. The fix re-registers callbacks after the service is bound after a restart.

Test: Built on device and tested manually
Bug:182330864
Change-Id: I0364ad0707f05e62f87c836d6e63b0134f6460a4
This commit is contained in:
Shashwat Razdan
2021-04-02 14:26:40 -07:00
parent ac5aec91b5
commit f20415ff42

View File

@@ -406,6 +406,8 @@ public class SmartspacePerUserService extends
+ callbackCount + " callbacks.");
}
service.onCreateSmartspaceSessionLocked(mSmartspaceConfig, mSessionId, token);
mCallbacks.broadcast(
callback -> service.registerSmartspaceUpdatesLocked(mSessionId, callback));
}
}
}