rhdunn / espeak

eSpeak NG is an open source speech synthesizer that supports 101 languages and accents.
http://reecedunn.co.uk/espeak-for-android
GNU General Public License v3.0
386 stars 16 forks source link

The TtsSettingsActivity uses deprecated APIs. #36

Closed rhdunn closed 11 years ago

rhdunn commented 11 years ago

The TtsSettingsActivity class uses addPreferencesFromResource and getPreferenceScreen which are deprecated as of API 17. This should use the PreferenceFragment class that was introduced in API 11.

This will work as eSpeakActivity disables the button that opens the TtsSettingsActivity on API 13 and earlier. Also, the SettingsProvider class is exposed for API 13 and earlier, so TtsSettingsActivity does not get called by the Android settings application.

rhdunn commented 11 years ago

This has now been fixed to not use the deprecated APIs if the newer APIs are available.