Browse Source

GetSampleText.java: API 18 provides a constant for the 'sampleText' return value, so use it

master
Reece H. Dunn 12 years ago
parent
commit
6bbef4e496
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      android/src/com/reecedunn/espeak/GetSampleText.java

+ 2
- 2
android/src/com/reecedunn/espeak/GetSampleText.java View File

/* /*
* 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");


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();
} }

Loading…
Cancel
Save