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 00:48:32 +0000 (17:48 -0700)
commit48b8440ea6c868fe1974e5d452cc3b32698fa0a5
treecbca225b4d79508b4630ff759536f0d6e7eeeee1
parentd6aa9f3454df27d7e463973462d596b4f34052ee
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