commit | 58f16653728417100c61b5cb63298e0e3bb528dc | [log] [tgz] |
---|---|---|
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | Fri Sep 20 15:29:25 2013 +0100 |
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | Wed Sep 25 10:01:27 2013 +0000 |
tree | c07eea8df8097f61de6fd0f5226aa2dfc40ae933 | |
parent | 23051cac0472d29f3b28fb9820063fecba20d263 [diff] |
Catch MissingResourceException caused by bad locale in TTS. Malformed locale objects will throw MissingResourceException from getISO3Country() and getISO3Language() methods. This change guard against the case where device default locale is malformed and user tries to get TTS default locale (b/10814409) and case where user tries to pass bad locale as argument to TextToSpeech.getFeatures method (b/10494193). Bug:10494193,10814409 Change-Id: Ie54d5d30bb042324da0c0d19b77c3a932c5642f7