OSDN Git Service
(root)
/
android-x86
/
packages-apps-Settings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd15ee
)
Potential fix for Bug: 10241642
author
Amith Yamasani
<yamasani@google.com>
Thu, 8 Aug 2013 23:06:39 +0000
(16:06 -0700)
committer
Amith Yamasani
<yamasani@google.com>
Thu, 8 Aug 2013 23:06:39 +0000
(16:06 -0700)
Check if the fragment is running before handling click.
Change-Id: I78ab3db5c5d0b3e041cff7525239698c361fd5fb
src/com/android/settings/ZonePicker.java
patch
|
blob
|
history
diff --git
a/src/com/android/settings/ZonePicker.java
b/src/com/android/settings/ZonePicker.java
index
1502ad1
..
a5479af
100644
(file)
--- a/
src/com/android/settings/ZonePicker.java
+++ b/
src/com/android/settings/ZonePicker.java
@@
-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);