Potential fix for Bug: 10241642

Check if the fragment is running before handling click.

Change-Id: I78ab3db5c5d0b3e041cff7525239698c361fd5fb
This commit is contained in:
Amith Yamasani
2013-08-08 16:06:39 -07:00
parent dcd15ee04b
commit 8287658863

View File

@@ -288,6 +288,8 @@ public class ZonePicker extends ListFragment {
@Override
public void onListItemClick(ListView listView, View v, int position, long id) {
// Ignore extra clicks
if (!isResumed()) return;
final Map<?, ?> map = (Map<?, ?>)listView.getItemAtPosition(position);
final String tzId = (String) map.get(KEY_ID);