Kotlin
This commit is contained in:
parent
5d2a30b65a
commit
8e6ab40d93
23 changed files with 266 additions and 253 deletions
|
@ -198,6 +198,6 @@ public class MusicPlaybackQueueStore extends SQLiteOpenHelper {
|
|||
private Observable<ArrayList<Song>> getQueue(@NonNull final String tableName) {
|
||||
Cursor cursor = getReadableDatabase().query(tableName, null,
|
||||
null, null, null, null, null);
|
||||
return SongLoader.getSongs(cursor);
|
||||
return SongLoader.Companion.getSongs(cursor);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,17 +48,17 @@ public class RepositoryImpl implements Repository {
|
|||
|
||||
@Override
|
||||
public Observable<ArrayList<Song>> getAllSongs() {
|
||||
return SongLoader.getAllSongs(context);
|
||||
return SongLoader.Companion.getAllSongs(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<ArrayList<Song>> getSuggestionSongs() {
|
||||
return SongLoader.suggestSongs(context);
|
||||
return SongLoader.Companion.suggestSongs(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Observable<Song> getSong(int id) {
|
||||
return SongLoader.getSong(context, id);
|
||||
return SongLoader.Companion.getSong(context, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue