-Added better player exception handling to player.

-Added expired media source cleaning to media source manager.
This commit is contained in:
John Zhen Mo 2018-03-27 12:10:48 -07:00
parent 60a03199be
commit 2a806858ee
5 changed files with 65 additions and 51 deletions

View file

@ -56,7 +56,8 @@ public final class BookmarkFragment
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final AppDatabase database = NewPipeDatabase.getInstance(getContext());
if (activity == null) return;
final AppDatabase database = NewPipeDatabase.getInstance(activity);
localPlaylistManager = new LocalPlaylistManager(database);
remotePlaylistManager = new RemotePlaylistManager(database);
disposables = new CompositeDisposable();