fix cache
This commit is contained in:
parent
cd4d17d497
commit
c30eb36854
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue