mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-12-03 17:35:56 +03:00
#80 Update heading after text has changed
This commit is contained in:
parent
98bb0fe9a8
commit
de652c3c42
2 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,7 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/release" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
|
||||
|
|
|
@ -19,6 +19,7 @@ import it.niedermann.owncloud.notes.R;
|
|||
import it.niedermann.owncloud.notes.model.Note;
|
||||
import it.niedermann.owncloud.notes.persistence.NoteSQLiteOpenHelper;
|
||||
import it.niedermann.owncloud.notes.util.ICallback;
|
||||
import it.niedermann.owncloud.notes.util.NoteUtil;
|
||||
|
||||
public class EditNoteActivity extends AppCompatActivity {
|
||||
private final long DELAY = 1000; // in ms
|
||||
|
@ -106,8 +107,11 @@ public class EditNoteActivity extends AppCompatActivity {
|
|||
if (ab != null) {
|
||||
ab.setSubtitle(getResources().getString(R.string.action_edit_saving));
|
||||
}
|
||||
// #74
|
||||
note.setModified(Calendar.getInstance());
|
||||
note.setContent(((EditText) findViewById(R.id.editContent)).getText().toString());
|
||||
// #80
|
||||
note.setTitle(NoteUtil.generateNoteTitle(note.getContent()));
|
||||
NoteSQLiteOpenHelper db = new NoteSQLiteOpenHelper(this);
|
||||
db.getNoteServerSyncHelper().addCallback(new ICallback() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue