diff options
author | Charles Chen <clchen@google.com> | 2010-03-25 19:59:50 -0700 |
---|---|---|
committer | Charles Chen <clchen@google.com> | 2010-03-26 16:14:10 -0700 |
commit | def7185cf19d48c95b50c2b83503d5cd21a613bf (patch) | |
tree | e74a813f03a3e4ecacba580bec34948a5ac67426 /packages/TtsService/src/android/tts/TtsService.java | |
parent | 9c3cee9824026764275e4d84ba9b5d9fdc5da690 (diff) | |
download | frameworks_base-def7185cf19d48c95b50c2b83503d5cd21a613bf.zip frameworks_base-def7185cf19d48c95b50c2b83503d5cd21a613bf.tar.gz frameworks_base-def7185cf19d48c95b50c2b83503d5cd21a613bf.tar.bz2 |
Cherry-picking this fix into Froyo.
This fix is part of addressing bug #2548048
Making it possible to determine which TTS engine is currently set
as the default by the user.
Change-Id: Ifa422f43a33498b94d96811078c0794d64668357
Diffstat (limited to 'packages/TtsService/src/android/tts/TtsService.java')
-rwxr-xr-x | packages/TtsService/src/android/tts/TtsService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/TtsService/src/android/tts/TtsService.java b/packages/TtsService/src/android/tts/TtsService.java index 0d2921e..ae48e0e 100755 --- a/packages/TtsService/src/android/tts/TtsService.java +++ b/packages/TtsService/src/android/tts/TtsService.java @@ -1436,6 +1436,15 @@ public class TtsService extends Service implements OnCompletionListener { return mSelf.setEngine(packageName);
} + /** + * Returns the packagename of the default speech synthesis engine. + * + * @return Packagename of the TTS engine that the user has chosen as their default. + */ + public String getDefaultEngine() { + return mSelf.getDefaultEngine(); + } + }; } |