Skip to content
Snippets Groups Projects
Commit 5f456298 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Medialibrary: publish clearDatabase method

(cherry picked from commit f7e12af9)
parent 42bf3aaf
No related branches found
No related tags found
No related merge requests found
......@@ -655,6 +655,7 @@ abstract public class AbstractMedialibrary {
abstract public AbstractMediaWrapper[] lastMediaPlayed();
abstract public AbstractMediaWrapper[] lastStreamsPlayed();
abstract public boolean clearHistory();
abstract public void clearDatabase(boolean restorePlaylist);
abstract public boolean addToHistory(String mrl, String title);
abstract public AbstractMediaWrapper getMedia(long id);
abstract public AbstractMediaWrapper getMedia(Uri uri);
......
......@@ -330,6 +330,9 @@ public class StubMedialibrary extends AbstractMedialibrary {
return true;
}
@Override
public void clearDatabase(boolean restorePlaylist) {}
//TODO what if two files have the same name ??
// TODO what happens in case of false return
public boolean addToHistory(String mrl, String title) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment