Stop PlayerService when logging out.
This commit is contained in:
parent
ba31a4efcf
commit
931cd0b42d
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue