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); updateDao.createNew(update);
final long updateId = update.getId(); final long updateId = update.getId();
final Bitmap tempPicture = picture;
new Thread() { new Thread() {
@Override @Override
public void run() { public void run() {
actFmSyncService.pushUpdate(updateId, picture); actFmSyncService.pushUpdate(updateId, tempPicture);
} }
}.start(); }.start();
addCommentField.setText(""); //$NON-NLS-1$ addCommentField.setText(""); //$NON-NLS-1$
picture = null;
pictureButton.setImageResource(R.drawable.icn_camera); pictureButton.setImageResource(R.drawable.icn_camera);
refreshUpdatesList(); refreshUpdatesList();

@ -426,7 +426,7 @@ public class TaskListActivity extends ListActivity implements OnScrollListener,
*/ */
@Override @Override
public boolean onEditorAction(TextView view, int actionId, KeyEvent event) { 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); quickAddTask(quickAddBox.getText().toString(), true);
return true; return true;
} }

Loading…
Cancel
Save