TaskAdapter: got rid of superflous scrolling around

pull/14/head
Tim Su 14 years ago
parent 14ae77c69b
commit d243a170dc

@ -474,10 +474,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
ListView listView = activity.getListView();
int scrollPos = listView.getScrollY();
notifyDataSetInvalidated();
listView.scrollTo(0, scrollPos);
}
});
}
@ -799,10 +796,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
} else {
expanded = taskId;
}
ListView listView = activity.getListView();
int scrollPos = listView.getScrollY();
notifyDataSetChanged();
listView.scrollTo(0, scrollPos);
notifyDataSetInvalidated();
}
}

Loading…
Cancel
Save