Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 53196bbe authored by Neil Fuller's avatar Neil Fuller
Browse files

Withdraw suggestion when current user changes

This commit changes ControllerImpl so that it replaces previous
"certain" suggestions when the user changes. Before this commit, the
previous suggestion would be left until the providers made a new
suggestion. Generally, the ControllerImpl tries to avoid carrying state
between users so replacing the suggestion is a more consistent approach.

This commit also adds an assertion to an existing test. Before this
change, the test fails. It passes after.

It also adds a test for destroy(), which is another path where we expect
previous suggestions to be overridden, is potentially influenced by the
ControllerImpl change, and where test coverage was previously lacking.

Bug: 193410893
Test: atest com.android.server.timezonedetector.location
Change-Id: I9b1b61bdf0d7c269bd0e2252f8ba0663464eb9b8
parent 36e2c34e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment