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() {
mediaSessionConnector.setPlayer(null);
deleteCache(this, standaloneDatabaseProvider);
standaloneDatabaseProvider.close();
mediaSession.setActive(false);
playerNotificationManager.setPlayer(null);
player.release();
playerView.setPlayer(null);
simpleCache.release();
standaloneDatabaseProvider.close();
super.onDestroy();
}