Stop PlayerService when logging out.

housekeeping/remove-warnings
Antoine POPINEAU 2020-07-11 21:05:19 +02:00
rodzic ba31a4efcf
commit 931cd0b42d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A78AC64694F84063
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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()
}