FIXME
This commit is contained in:
parent
7bd430e0f9
commit
38e4ca2eed
@ -81,7 +81,10 @@ public class MainActivity extends AppCompatActivity implements MetaDataDialog.On
|
|||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
MusicNote musicNote = new MusicNote(title, composer, year, genre);
|
MusicNote musicNote = new MusicNote(title, composer, year, genre);
|
||||||
long musicNoteID = musicDB.musicNoteDao().insert(musicNote);
|
long musicNoteID = musicDB.musicNoteDao().insert(musicNote);
|
||||||
|
musicNote.setMusicNoteId(musicNoteID);
|
||||||
|
|
||||||
|
Log.d("MainActivity", "MusicNoteID of inserted song: " + musicNoteID);
|
||||||
|
Log.d("MainActivity", "MusicNoteID of referenced song: " + musicNote.getMusicNoteId());
|
||||||
for(Uri uri: uris) {
|
for(Uri uri: uris) {
|
||||||
String filePath = saveImageInternally(uri);
|
String filePath = saveImageInternally(uri);
|
||||||
NoteSheet noteSheet = new NoteSheet(musicNoteID, filePath);
|
NoteSheet noteSheet = new NoteSheet(musicNoteID, filePath);
|
||||||
|
@ -111,6 +111,7 @@ public class NoteSongAdapter extends RecyclerView.Adapter<NoteSongAdapter.NoteVi
|
|||||||
@Override
|
@Override
|
||||||
protected List<NoteSheet> doInBackground(Void... voids) {
|
protected List<NoteSheet> doInBackground(Void... voids) {
|
||||||
List<NoteSheet> sheets = musicNoteDAO.getNoteSheetsForMusicSong(this.musicNoteId);
|
List<NoteSheet> sheets = musicNoteDAO.getNoteSheetsForMusicSong(this.musicNoteId);
|
||||||
|
Log.d("LoadedNoteSheetsTask", "ID: " + this.musicNoteId);
|
||||||
Log.d("LoadNoteSheetsTask", "Loaded NoteSheets: " + sheets.size());
|
Log.d("LoadNoteSheetsTask", "Loaded NoteSheets: " + sheets.size());
|
||||||
return sheets;
|
return sheets;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user