OSDN Git Service

Fix issue for new account not being shown in work profile.
authorDoris Ling <dling@google.com>
Wed, 17 May 2017 00:23:55 +0000 (17:23 -0700)
committerDoris Ling <dling@google.com>
Wed, 17 May 2017 23:42:17 +0000 (23:42 +0000)
commit71090678c0038cc87db8132be4739ec0bc6279ac
tree1f788b590d90c2bf206c9e4ffe6513b26401778e
parent9a0299cd52b8e8ead35c06095a028425850f30aa
Fix issue for new account not being shown in work profile.

When refreshing the UI, we tried to only create profile data for new
profile, and skip the initialization for existing profiles. However,
the authentication helper will not get the updated account list, since
the account update listener is being paused. Re-create the
authentication helper to get the latest list of enabled accounts.

Change-Id: Ie29699456e5b32747e8158d51382afaa2c0c5908
Fix: 38302246
Test: make RunSettingsRoboTests
src/com/android/settings/accounts/AccountPreferenceController.java
tests/robotests/src/com/android/settings/accounts/AccountPreferenceControllerTest.java