Merge "Use correct synchronization lock" into nyc-dev am: 638cc6cac9

am: 23ef1f7653

* commit '23ef1f7653a792492fd5c64a786480b0a7b4e934':
  Use correct synchronization lock

Change-Id: Ife205c9b527546edab562bd936fb2649cb26e3c2
This commit is contained in:
Amith Yamasani
2016-05-24 18:44:38 +00:00
committed by android-build-merger

View File

@@ -1101,7 +1101,7 @@ public class VoiceInteractionManagerService extends SystemService {
if (hit && doit) {
// The user is force stopping our current interactor/recognizer.
// Clear the current settings and restore default state.
synchronized (VoiceInteractionManagerService.this) {
synchronized (VoiceInteractionManagerServiceStub.this) {
unloadAllKeyphraseModels();
if (mImpl != null) {
mImpl.shutdownLocked();
@@ -1126,7 +1126,7 @@ public class VoiceInteractionManagerService extends SystemService {
int userHandle = getChangingUserId();
if (DEBUG) Slog.d(TAG, "onSomePackagesChanged user=" + userHandle);
synchronized (VoiceInteractionManagerService.this) {
synchronized (VoiceInteractionManagerServiceStub.this) {
ComponentName curInteractor = getCurInteractor(userHandle);
ComponentName curRecognizer = getCurRecognizer(userHandle);
if (curRecognizer == null) {