summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/tts
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-08-10 16:32:08 -0700
committerDianne Hackborn <hackbod@google.com>2014-08-10 16:32:08 -0700
commit1cf2077c3762349f4838ab041e6a06363ebd0b26 (patch)
tree82bafb0cfb5005972a2cc6d3815956a07bebb1ca /src/com/android/settings/tts
parent092c62f1f3811f205c764fcb5b8347ec8fed67e6 (diff)
downloadpackages_apps_Settings-1cf2077c3762349f4838ab041e6a06363ebd0b26.zip
packages_apps_Settings-1cf2077c3762349f4838ab041e6a06363ebd0b26.tar.gz
packages_apps_Settings-1cf2077c3762349f4838ab041e6a06363ebd0b26.tar.bz2
Fix issues in Settings: 16660423, 13172381, 16868094
Issue #16660423: Stability: ArrayIndexOutOfBoundsException in settings: at com.android.settings.fuelgauge.BatteryHistoryChart$ChartData.draw( BatteryHistoryChart.java:109) Issue #13172381: No content description in Battery charging section Issue #16868094: Settings crash on switching to landscape mode with "Google Text-to-speech" settings icon selected Change-Id: I94d0e83f72d571eb90aad6742acabce56c0298ec
Diffstat (limited to 'src/com/android/settings/tts')
-rw-r--r--src/com/android/settings/tts/TtsEngineSettingsFragment.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/tts/TtsEngineSettingsFragment.java b/src/com/android/settings/tts/TtsEngineSettingsFragment.java
index c8531fa..2449353 100644
--- a/src/com/android/settings/tts/TtsEngineSettingsFragment.java
+++ b/src/com/android/settings/tts/TtsEngineSettingsFragment.java
@@ -140,7 +140,7 @@ public class TtsEngineSettingsFragment extends SettingsPreferenceFragment implem
mLocalePreference.setEntries(entries);
mLocalePreference.setEntryValues(entryValues);
- mLocalePreference.setValue(value.toString());
+ mLocalePreference.setValue(value != null ? value.toString() : null);
mLocalePreference.setEnabled(entries.length > 0);
}