Merge "Keep STH state in sync with HAL" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7cdc320a6b
@@ -501,7 +501,10 @@ public class SoundTriggerHelper implements SoundTrigger.StatusListener {
|
||||
if (status != STATUS_OK) {
|
||||
Slog.w(TAG, "Error stopping keyphrase model: " + model.getHandle());
|
||||
}
|
||||
model.clearState();
|
||||
model.setStopped();
|
||||
model.setRequested(false);
|
||||
model.clearCallback();
|
||||
model.setRecognitionConfig(null);
|
||||
}
|
||||
}
|
||||
internalClearGlobalStateLocked();
|
||||
|
||||
Reference in New Issue
Block a user