summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2015-06-08 09:59:54 -0700
committerWale Ogunwale <ogunwale@google.com>2015-06-08 09:59:54 -0700
commit4a922d470089bde49c2ca50b258973828a665aba (patch)
tree07e35add053586e1d17728fbfbddecfbe4184f23
parentb36ad5dc6bb6218aeabca17197001ac0a942219a (diff)
downloadframeworks_base-4a922d470089bde49c2ca50b258973828a665aba.zip
frameworks_base-4a922d470089bde49c2ca50b258973828a665aba.tar.gz
frameworks_base-4a922d470089bde49c2ca50b258973828a665aba.tar.bz2
Release voice wake lock at end of voice interaction session
Bug: 21615776 Bug: 21615761 Change-Id: I75d568474d4df5f21ea5b616887c6187e54f69e7
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index 81b8457..f6186a5 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -10194,6 +10194,7 @@ public final class ActivityManagerService extends ActivityManagerNative
void finishRunningVoiceLocked() {
if (mRunningVoice != null) {
mRunningVoice = null;
+ mVoiceWakeLock.release();
updateSleepIfNeededLocked();
}
}