Fixed an issue with adding pictures to comments and with adding whitespace only tasks

pull/14/head
Sam Bosley 13 years ago
parent 85552138ba
commit 1e13208b05

@ -236,13 +236,15 @@ public class TagUpdatesActivity extends ListActivity {
updateDao.createNew(update);
final long updateId = update.getId();
final Bitmap tempPicture = picture;
new Thread() {
@Override
public void run() {
actFmSyncService.pushUpdate(updateId, picture);
actFmSyncService.pushUpdate(updateId, tempPicture);
}
}.start();
addCommentField.setText(""); //$NON-NLS-1$
picture = null;
pictureButton.setImageResource(R.drawable.icn_camera);
refreshUpdatesList();

@ -426,7 +426,7 @@ public class TaskListActivity extends ListActivity implements OnScrollListener,
*/
@Override
public boolean onEditorAction(TextView view, int actionId, KeyEvent event) {
if(actionId == EditorInfo.IME_NULL && quickAddBox.getText().length() > 0) {
if(actionId == EditorInfo.IME_NULL && !TextUtils.isEmpty(quickAddBox.getText().toString().trim())) {
quickAddTask(quickAddBox.getText().toString(), true);
return true;
}

Loading…
Cancel
Save