Permalink
Browse files

Fix a bug where we weren't actually looking at the selection containe…

…r to get the selected item stack.
  • Loading branch information...
1 parent 1a0c03b commit 0aff43624c7af18c0a251ae7e83a8499bfc0869f @matburt committed Feb 24, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/matburt/mobileorg/MobileOrgActivity.java
@@ -36,7 +36,8 @@ public OrgViewAdapter(Context context, Node ndx, ArrayList<Integer> selection) {
Log.d("OVA", "Selection Stack");
if (selection != null) {
for (int idx = 0; idx < selection.size(); idx++) {
- this.thisNode = this.thisNode.subNodes.get(idx);
+ this.thisNode = this.thisNode.subNodes.get(
+ selection.get(idx));
Log.d("OVA", this.thisNode.nodeName);
}
}
@@ -121,6 +122,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
public void onListItemClick(ListView l, View v, int position, long id) {
Intent dispIntent = new Intent();
MobileOrgApplication appInst = (MobileOrgApplication)this.getApplication();
+ Log.d("OVA", "Item selected was: " + position);
dispIntent.setClassName("com.matburt.mobileorg",
"com.matburt.mobileorg.MobileOrgActivity");
if (appInst.nodeSelection == null) {

0 comments on commit 0aff436

Please sign in to comment.