Hopefully the last force close is fixed. This whole architecture needs a re-design - I'm probably loading and reloading the list way more than I need to be. In fact, that's almost a certainty.

BAH.
pull/14/head
Tim Su 15 years ago
parent 25f4d31837
commit 41435827e7

@ -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:versionCode="90"
android:versionName="2.4.5">
android:versionCode="91"
android:versionName="2.4.6">
<meta-data android:name="com.a0soft.gphone.aTrackDog.webURL"
android:value="http://www.weloveastrid.com" />

@ -436,8 +436,6 @@ public class TaskListSubActivity extends SubActivity {
int hiddenTasks = 0; // # of tasks hidden
int completedTasks = 0; // # of tasks on list that are done
Log.e("astrid", "fill data called! ", new Throwable("hai")); // XXX
try {
// get a cursor to the task list
Cursor tasksCursor;
@ -498,18 +496,10 @@ public class TaskListSubActivity extends SubActivity {
// happens when you rotate the screen while the thread is
// still running. i don't think it's avoidable?
Log.w("astrid", "StaleDataException", e);
return;
} catch (final Exception e) {
Log.e("astrid", "Error loading task list", e);
handler.post(new Runnable() {
public void run() {
DialogUtilities.okDialog(getParent(),
"Error loading task list, FYI. If you " +
"continue to have problems, please let " +
"me know!\n\n" + e.getClass().getSimpleName() +
": " + e.getMessage(),
null);
}
});
return;
}
int activeTasks = taskArray.size() - completedTasks;
@ -748,7 +738,6 @@ public class TaskListSubActivity extends SubActivity {
public void onWindowFocusChanged(boolean hasFocus) {
// refresh, since stuff might have changed...
if(hasFocus) {
Log.e("astrid", "window focus changed. suppress: " + suppressReload); // XXX
if(suppressReload) {
suppressReload = false;
return;

Loading…
Cancel
Save