Astrid 3.3.2 - fixes edit button tap jumps to top of list

pull/14/head
Tim Su 14 years ago
parent a5faae2d6d
commit 2c6400ed89

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid"
android:versionName="3.3.1 (bug fix release)"
android:versionCode="156">
android:versionName="3.3.2 (bug fix release)"
android:versionCode="157">
<!-- widgets, alarms, and services will break if Astrid is installed on SD card -->
<!-- android:installLocation="internalOnly"> -->

@ -428,7 +428,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
}
continue;
}
addTaskToLoadingArray(task);
requestNewDetails(task);
@ -488,7 +487,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
notifyDataSetInvalidated();
notifyDataSetChanged();
}
});
}
@ -753,14 +752,6 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
fontSize = Preferences.getIntegerFromString(R.string.p_fontSize, 20);
}
@Override
public void notifyDataSetInvalidated() {
ListView view = activity.getListView();
int scroll = view.getScrollY();
super.notifyDataSetInvalidated();
view.scrollTo(0, scroll);
}
private final View.OnClickListener completeBoxListener = new View.OnClickListener() {
public void onClick(View v) {
ViewHolder viewHolder = (ViewHolder)((View)v.getParent().getParent()).getTag();
@ -817,7 +808,8 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
} else {
expanded = taskId;
}
notifyDataSetInvalidated();
notifyDataSetChanged();
}
}

Loading…
Cancel
Save