Search in sources :

Example 1 with AppDatabase

use of org.schabi.newpipe.database.AppDatabase in project NewPipe by TeamNewPipe.

the class BookmarkFragment method onCreate.

// /////////////////////////////////////////////////////////////////////////
// Fragment LifeCycle - Creation
// /////////////////////////////////////////////////////////////////////////
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final AppDatabase database = NewPipeDatabase.getInstance(getContext());
    localPlaylistManager = new LocalPlaylistManager(database);
    remotePlaylistManager = new RemotePlaylistManager(database);
    disposables = new CompositeDisposable();
}
Also used : AppDatabase(org.schabi.newpipe.database.AppDatabase) LocalPlaylistManager(org.schabi.newpipe.fragments.local.LocalPlaylistManager) RemotePlaylistManager(org.schabi.newpipe.fragments.local.RemotePlaylistManager) CompositeDisposable(io.reactivex.disposables.CompositeDisposable)

Aggregations

CompositeDisposable (io.reactivex.disposables.CompositeDisposable)1 AppDatabase (org.schabi.newpipe.database.AppDatabase)1 LocalPlaylistManager (org.schabi.newpipe.fragments.local.LocalPlaylistManager)1 RemotePlaylistManager (org.schabi.newpipe.fragments.local.RemotePlaylistManager)1