|
|
@ -77,6 +77,7 @@ import com.todoroo.astrid.actfm.ActFmCameraModule;
|
|
|
|
import com.todoroo.astrid.actfm.ActFmCameraModule.CameraResultCallback;
|
|
|
|
import com.todoroo.astrid.actfm.ActFmCameraModule.CameraResultCallback;
|
|
|
|
import com.todoroo.astrid.actfm.EditPeopleControlSet;
|
|
|
|
import com.todoroo.astrid.actfm.EditPeopleControlSet;
|
|
|
|
import com.todoroo.astrid.actfm.sync.ActFmPreferenceService;
|
|
|
|
import com.todoroo.astrid.actfm.sync.ActFmPreferenceService;
|
|
|
|
|
|
|
|
import com.todoroo.astrid.actfm.sync.ActFmSyncService;
|
|
|
|
import com.todoroo.astrid.data.Metadata;
|
|
|
|
import com.todoroo.astrid.data.Metadata;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.files.AACRecordingActivity;
|
|
|
|
import com.todoroo.astrid.files.AACRecordingActivity;
|
|
|
@ -211,6 +212,9 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private ActFmPreferenceService actFmPreferenceService;
|
|
|
|
private ActFmPreferenceService actFmPreferenceService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private ActFmSyncService actFmSyncService;
|
|
|
|
|
|
|
|
|
|
|
|
// --- UI components
|
|
|
|
// --- UI components
|
|
|
|
|
|
|
|
|
|
|
|
private ImageButton voiceAddNoteButton;
|
|
|
|
private ImageButton voiceAddNoteButton;
|
|
|
@ -1092,6 +1096,7 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
private void createNewFileAttachment(String path, String fileName, String fileType) {
|
|
|
|
private void createNewFileAttachment(String path, String fileName, String fileType) {
|
|
|
|
Metadata fileMetadata = FileMetadata.createNewFileMetadata(model.getId(), path, fileName, fileType);
|
|
|
|
Metadata fileMetadata = FileMetadata.createNewFileMetadata(model.getId(), path, fileName, fileType);
|
|
|
|
metadataService.save(fileMetadata);
|
|
|
|
metadataService.save(fileMetadata);
|
|
|
|
|
|
|
|
actFmSyncService.pushAttachmentInBackground(fileMetadata);
|
|
|
|
filesControlSet.refreshMetadata();
|
|
|
|
filesControlSet.refreshMetadata();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|