fix cache

This commit is contained in:
Page Asgardius 2023-01-06 11:48:30 -07:00
parent cd4d17d497
commit c30eb36854

View file

@ -332,12 +332,12 @@ public class VideoPlayer extends AppCompatActivity {
public void onDestroy() { public void onDestroy() {
mediaSessionConnector.setPlayer(null); mediaSessionConnector.setPlayer(null);
deleteCache(this, standaloneDatabaseProvider); deleteCache(this, standaloneDatabaseProvider);
standaloneDatabaseProvider.close();
mediaSession.setActive(false); mediaSession.setActive(false);
playerNotificationManager.setPlayer(null); playerNotificationManager.setPlayer(null);
player.release(); player.release();
playerView.setPlayer(null); playerView.setPlayer(null);
simpleCache.release(); simpleCache.release();
standaloneDatabaseProvider.close();
super.onDestroy(); super.onDestroy();
} }