summaryrefslogtreecommitdiffstats
path: root/services/voiceinteraction
diff options
context:
space:
mode:
authorYohei Yukawa <yukawa@google.com>2015-06-10 21:15:00 -0700
committerYohei Yukawa <yukawa@google.com>2015-06-10 21:15:00 -0700
commit5f531f1f362af3a82cce93ad3ab6785c9224ce48 (patch)
tree32b0b2ee515fd7388513cf4a05bcbc04e8142cb6 /services/voiceinteraction
parent62974816a325fa6ea49d6f9800b962af85a9856a (diff)
downloadframeworks_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')
-rw-r--r--services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java3
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) {