Browse Source

Stop PlayerService when logging out.

housekeeping/remove-warnings
Antoine POPINEAU 4 years ago
parent
commit
931cd0b42d
No known key found for this signature in database
GPG Key ID: A78AC64694F84063
  1. 1
      app/src/main/java/com/github/apognu/otter/activities/MainActivity.kt

1
app/src/main/java/com/github/apognu/otter/activities/MainActivity.kt

@ -182,6 +182,7 @@ class MainActivity : AppCompatActivity() { @@ -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…
Cancel
Save