Commit 397061cd authored by Evan W. Patton's avatar Evan W. Patton Committed by Evan W. Patton

Make TTS stop when switching screens in companion

Change-Id: I993a7b73eee00b3469626c6b78369570e387d821
parent 402b2d57
...@@ -69,7 +69,7 @@ description = "The TextToSpeech component speaks a given text aloud. You can se ...@@ -69,7 +69,7 @@ description = "The TextToSpeech component speaks a given text aloud. You can se
iconName = "images/textToSpeech.png") iconName = "images/textToSpeech.png")
@SimpleObject @SimpleObject
public class TextToSpeech extends AndroidNonvisibleComponent public class TextToSpeech extends AndroidNonvisibleComponent
implements Component, OnStopListener, OnResumeListener, OnDestroyListener /*, ActivityResultListener */{ implements Component, OnStopListener, OnResumeListener, OnDestroyListener, OnClearListener {
private static final Map<String, Locale> iso3LanguageToLocaleMap = Maps.newHashMap(); private static final Map<String, Locale> iso3LanguageToLocaleMap = Maps.newHashMap();
private static final Map<String, Locale> iso3CountryToLocaleMap = Maps.newHashMap(); private static final Map<String, Locale> iso3CountryToLocaleMap = Maps.newHashMap();
...@@ -487,4 +487,8 @@ implements Component, OnStopListener, OnResumeListener, OnDestroyListener /*, Ac ...@@ -487,4 +487,8 @@ implements Component, OnStopListener, OnResumeListener, OnDestroyListener /*, Ac
tts.onDestroy(); tts.onDestroy();
} }
@Override
public void onClear() {
tts.onDestroy();
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment