Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e14dd46 authored by Sandeep Siddhartha's avatar Sandeep Siddhartha
Browse files

Use keyphrase id from the recognition event

Bug: 16516658
Change-Id: I8be773eec39e1c4c57d106e03a443cbfc5c6dc5d
parent 57b69dd2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -255,8 +255,7 @@ public class SoundTriggerHelper implements SoundTrigger.StatusListener {
                    return;
                }
                // TODO: Handle more than one keyphrase extras.
                // TODO: Use keyphraseExtras[0].id here instead of 100.
                int keyphraseId = 100;
                int keyphraseId = keyphraseExtras[0].id;
                try {
                    synchronized(this) {
                        // Check which keyphrase triggered, and fire the appropriate event.