diff options
author | Thiago Vinícius Freire de Araújo Ribeiro <thiagovfar@gmail.com> | 2013-05-26 09:32:41 -0300 |
---|---|---|
committer | Thiago Vinícius Freire de Araújo Ribeiro <thiagovfar@gmail.com> | 2013-05-26 21:56:12 -0300 |
commit | 8d7d189971de9b48984da460af9f1f64c5a3a6ef (patch) | |
tree | ee6a48da8b81d97f60903dccf58c4ff899b9d837 /packages/SystemUI/src | |
parent | b167370151e97a5bb0aa20e560e4f3b52109e8cb (diff) | |
download | frameworks_base-8d7d189971de9b48984da460af9f1f64c5a3a6ef.zip frameworks_base-8d7d189971de9b48984da460af9f1f64c5a3a6ef.tar.gz frameworks_base-8d7d189971de9b48984da460af9f1f64c5a3a6ef.tar.bz2 |
profiles: Broadcast profile updates
Add broadcast to indicate profile changes that does not
cause a profile to be selected.
Use the new broadcast to update the Profile Tile more
reliably.
Currently the tile update is triggered by a profile
selection. However, the active profile may change without
triggering a selection. This happens, for instance, on
locale changes.
The Profile Tile does handle locale changes, but is subject
to a race condition. If it handles the locale change before
the profile manager does, the name change will not be seen.
Change-Id: I193454f5100f1ae04dd24d50f25e75ec961f4d68
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java b/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java index 18b3b49..47cb511 100644 --- a/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java +++ b/packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java @@ -42,6 +42,7 @@ public class ProfileTile extends QuickSettingsTile { super(context, qsc); qsc.registerAction(ProfileManagerService.INTENT_ACTION_PROFILE_SELECTED, this); + qsc.registerAction(ProfileManagerService.INTENT_ACTION_PROFILE_UPDATED, this); mProfileManager = (ProfileManager) mContext.getSystemService(Context.PROFILE_SERVICE); |