diff options
author | Yohei Yukawa <yukawa@google.com> | 2015-06-10 21:15:00 -0700 |
---|---|---|
committer | Yohei Yukawa <yukawa@google.com> | 2015-06-10 21:15:00 -0700 |
commit | 5f531f1f362af3a82cce93ad3ab6785c9224ce48 (patch) | |
tree | 32b0b2ee515fd7388513cf4a05bcbc04e8142cb6 /services/voiceinteraction/java | |
parent | 62974816a325fa6ea49d6f9800b962af85a9856a (diff) | |
download | frameworks_base-5f531f1f362af3a82cce93ad3ab6785c9224ce48.zip frameworks_base-5f531f1f362af3a82cce93ad3ab6785c9224ce48.tar.gz frameworks_base-5f531f1f362af3a82cce93ad3ab6785c9224ce48.tar.bz2 |
Make VIMS.SettingsObserver multiuser-aware.
VoiceInteractionManagerService.SettingsObserver has been used
to monitor per-user settings hence we have to take care of
multiuser scenario.
In the case of VoiceInteractionManagerService, monitoring
changes from all the users is OK because event handlers will
read settins from the current user anyway.
Bug: 21766395
Change-Id: I357fe2a7e2a5645355e696c6fbaae762f54ca029
Diffstat (limited to 'services/voiceinteraction/java')
-rw-r--r-- | services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java index 4cdf254..b0fca95 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java @@ -839,7 +839,8 @@ public class VoiceInteractionManagerService extends SystemService { super(handler); ContentResolver resolver = mContext.getContentResolver(); resolver.registerContentObserver(Settings.Secure.getUriFor( - Settings.Secure.VOICE_INTERACTION_SERVICE), false, this); + Settings.Secure.VOICE_INTERACTION_SERVICE), false, this, + UserHandle.USER_ALL); } @Override public void onChange(boolean selfChange) { |