OSDN Git Service

Fix a pseudo race condition in TtsEngineSettingsFragment.
authorNarayan Kamath <narayan@google.com>
Fri, 20 Jan 2012 17:52:02 +0000 (17:52 +0000)
committerNarayan Kamath <narayan@google.com>
Fri, 20 Jan 2012 17:52:02 +0000 (17:52 +0000)
commit2d8101bc8bb27c3c7e090f706ac40a3612507813
treebc56194b7c7a1c37eb3fb325760e1a4c73227d59
parentaf48709993faeb0d3665eb6a491aaec701e1ccd5
Fix a pseudo race condition in TtsEngineSettingsFragment.

The issue is that Fragment.setVoiceDataDetails can
be called before Fragment.getView. We guard against this
issue. No thread visibility issues here because both functions
are called on the UI thread.

bug:5884355
Change-Id: Iad91b91c58b04dcb9f34f6b5ff8752f2e8295423
src/com/android/settings/tts/TtsEnginePreference.java