OSDN Git Service

Fix bug 2577511 NPE in TTS Settings
authorJean-Michel Trivi <jmtrivi@google.com>
Tue, 13 Apr 2010 03:15:28 +0000 (20:15 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Tue, 13 Apr 2010 16:08:09 +0000 (09:08 -0700)
commitfced126829a74c9cbe9cbe993a3c54d1ff015a73
tree1af88a4463e1e3388b10316a59cd03163e9f0ec5
parentc06bb82f37f476813ea69dfd9f1514551719ac3b
Fix bug 2577511 NPE in TTS Settings
A previous bug had caused incorrect settings to be saved, in
particular the default language variant was not stored, unlike
the default language and country. When settings were restored, this
caused an invalid group of settings to be loaded, with a null
language variant. The fix consists in:
- discarding invalid default language settings
- reevaluating which language should be selected in the list of
  available languages.

Change-Id: If58882a9acc28f14a78f6142fefa17d04ca4ad5d
src/com/android/settings/TextToSpeechSettings.java