|
|
|
@ -11,6 +11,7 @@ import org.json.JSONObject;
|
|
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.database.sqlite.SQLiteException;
|
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
|
import android.graphics.Color;
|
|
|
|
|
import android.support.v4.app.Fragment;
|
|
|
|
@ -38,6 +39,7 @@ import android.widget.TextView.OnEditorActionListener;
|
|
|
|
|
import com.timsu.astrid.R;
|
|
|
|
|
import com.todoroo.andlib.data.TodorooCursor;
|
|
|
|
|
import com.todoroo.andlib.service.Autowired;
|
|
|
|
|
import com.todoroo.andlib.service.ContextManager;
|
|
|
|
|
import com.todoroo.andlib.service.DependencyInjectionService;
|
|
|
|
|
import com.todoroo.andlib.sql.Criterion;
|
|
|
|
|
import com.todoroo.andlib.sql.Query;
|
|
|
|
@ -60,6 +62,7 @@ import com.todoroo.astrid.helper.AsyncImageView;
|
|
|
|
|
import com.todoroo.astrid.helper.ImageDiskCache;
|
|
|
|
|
import com.todoroo.astrid.helper.ProgressBarSyncResultCallback;
|
|
|
|
|
import com.todoroo.astrid.service.MetadataService;
|
|
|
|
|
import com.todoroo.astrid.service.StartupService;
|
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
|
|
import com.todoroo.astrid.sync.SyncResultCallback;
|
|
|
|
@ -125,7 +128,11 @@ public class EditNoteActivity extends LinearLayout implements TimerActionListene
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void loadViewForTaskID(long t){
|
|
|
|
|
task = PluginServices.getTaskService().fetchById(t, Task.NOTES, Task.ID, Task.REMOTE_ID, Task.TITLE);
|
|
|
|
|
try {
|
|
|
|
|
task = PluginServices.getTaskService().fetchById(t, Task.NOTES, Task.ID, Task.REMOTE_ID, Task.TITLE);
|
|
|
|
|
} catch (SQLiteException e) {
|
|
|
|
|
StartupService.handleSQLiteColumnMissing(ContextManager.getContext(), e);
|
|
|
|
|
}
|
|
|
|
|
if(task == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|