diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-06-25 15:55:43 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-06-26 21:32:08 +0000 |
commit | cc3a46ada84b2c27544df0fa3369631c8dc9386e (patch) | |
tree | 5bf0ffd86dc76e5e394f220f05c8539d0b2bb8d1 /services/voiceinteraction | |
parent | 450176c52cb42d77764b6cacb7988fa8a6ebfde4 (diff) | |
download | frameworks_base-cc3a46ada84b2c27544df0fa3369631c8dc9386e.zip frameworks_base-cc3a46ada84b2c27544df0fa3369631c8dc9386e.tar.gz frameworks_base-cc3a46ada84b2c27544df0fa3369631c8dc9386e.tar.bz2 |
Also reset assist setting when force stopping assist
Bug: 20882522
Change-Id: I57725586ab5ff203b378a1e6d2e5e77a47fd2448
Diffstat (limited to 'services/voiceinteraction')
-rw-r--r-- | services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java index b68abab..cde87bd 100644 --- a/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java +++ b/services/voiceinteraction/java/com/android/server/voiceinteraction/VoiceInteractionManagerService.java @@ -433,6 +433,11 @@ public class VoiceInteractionManagerService extends SystemService { + " user=" + userHandle); } + void resetCurAssistant(int userHandle) { + Settings.Secure.putStringForUser(mContext.getContentResolver(), + Settings.Secure.ASSISTANT, null, userHandle); + } + @Override public void showSession(IVoiceInteractionService service, Bundle args, int flags) { synchronized (this) { @@ -897,6 +902,7 @@ public class VoiceInteractionManagerService extends SystemService { } setCurInteractor(null, userHandle); setCurRecognizer(null, userHandle); + resetCurAssistant(userHandle); initForUser(userHandle); switchImplementationIfNeededLocked(true); } |