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 17 years ago
parent 25f4d31837
commit 41435827e7

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.timsu.astrid" package="com.timsu.astrid"
android:versionCode="90" android:versionCode="91"
android:versionName="2.4.5"> android:versionName="2.4.6">
<meta-data android:name="com.a0soft.gphone.aTrackDog.webURL" <meta-data android:name="com.a0soft.gphone.aTrackDog.webURL"
android:value="http://www.weloveastrid.com" /> android:value="http://www.weloveastrid.com" />

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

Loading…
Cancel
Save