Stop PlayerService when logging out.

This commit is contained in:
Antoine POPINEAU 2020-07-11 21:05:19 +02:00
parent ba31a4efcf
commit 931cd0b42d
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ class MainActivity : AppCompatActivity() {
Intent(this, LoginActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
stopService(Intent(this@MainActivity, PlayerService::class.java))
startActivity(this)
finish()
}