Browse Source

Hack bug fix on pre-API level 11 devices when CAB done button is pressed.

pull/11/head
Eric Kok 11 years ago
parent
commit
14c5282ab2
  1. 6
      core/src/com/actionbarsherlock/view/SherlockListView.java

6
core/src/com/actionbarsherlock/view/SherlockListView.java

@ -258,7 +258,11 @@ public class SherlockListView extends ListView { @@ -258,7 +258,11 @@ public class SherlockListView extends ListView {
if (child instanceof Checkable) {
((Checkable) child).setChecked(getCheckedItemPositions().get(position));
} else if (useActivated) {
child.setActivated(getCheckedItemPositions().get(position));
// TODO: Investigate the impact of this hack fix
// (API level < 11 devices still get to this code point when clicking teh CAB done button)
if (android.os.Build.VERSION.SDK_INT > 11) {
child.setActivated(getCheckedItemPositions().get(position));
}
}
}
}

Loading…
Cancel
Save