Merge pull request #66 from StingerAJ/2011-08-15-patches

2011 08 15 patches
pull/14/head
Tim Su 13 years ago
commit b168ca1a28

@ -683,8 +683,11 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList
picture.setImageBitmap(bitmap);
uploadTagPicture(bitmap);
}
} else if(requestCode == REQUEST_ACTFM_LOGIN && resultCode == Activity.RESULT_OK)
} else if(requestCode == REQUEST_ACTFM_LOGIN && resultCode == Activity.RESULT_OK) {
saveSettings();
} else {
super.onActivityResult(requestCode, resultCode, data);
}
}
private void uploadTagPicture(final Bitmap bitmap) {

@ -127,6 +127,7 @@ public class GtasksLegacyMigrator {
if (!foundMatch) {
System.err.println("Resetting metadata");
//For non-matches, make the task look newly created
container.gtaskMetadata = GtasksMetadata.createEmptyMetadata(container.task.getId());
container.gtaskMetadata.setValue(GtasksMetadata.ID, ""); //$NON-NLS-1$
if (originalListId != null) {
// set the list-id based on the original listname, saved above during for-loop

@ -167,7 +167,7 @@ public final class TagService {
*/
public TodorooCursor<Metadata> getTags(long taskId) {
Query query = Query.select(TAG, REMOTE_ID).where(Criterion.and(MetadataCriteria.withKey(KEY),
MetadataCriteria.byTask(taskId)));
MetadataCriteria.byTask(taskId))).orderBy(Order.asc(TAG));
return metadataDao.query(query);
}

Loading…
Cancel
Save