Releases the video player on Mutex when destroying the app.
This commit is contained in:
@@ -140,6 +140,8 @@ class MainActivity : AppCompatActivity() {
|
|||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
keepPlayingMutex?.stop()
|
keepPlayingMutex?.stop()
|
||||||
|
keepPlayingMutex?.release()
|
||||||
|
keepPlayingMutex = null
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user