mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-03 23:09:52 +00:00
GetSampleText.java: API 18 provides a constant for the 'sampleText' return value, so use it
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2012 Reece H. Dunn
|
* Copyright (C) 2012-2013 Reece H. Dunn
|
||||||
* Copyright (C) 2011 The Android Open Source Project
|
* Copyright (C) 2011 The Android Open Source Project
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@@ -37,7 +37,7 @@ public class GetSampleText extends Activity {
|
|||||||
|
|
||||||
final int result = TextToSpeech.LANG_AVAILABLE;
|
final int result = TextToSpeech.LANG_AVAILABLE;
|
||||||
final Intent returnData = new Intent();
|
final Intent returnData = new Intent();
|
||||||
returnData.putExtra("sampleText", text);
|
returnData.putExtra(TextToSpeech.Engine.EXTRA_SAMPLE_TEXT, text);
|
||||||
setResult(result, returnData);
|
setResult(result, returnData);
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user