[Android] Onboarding: Cancel scope on activity destroyed
Geoffrey Métais
git at videolan.org
Wed Mar 13 11:30:29 CET 2019
vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 13 11:29:30 2019 +0100| [539760f67a23d3b7dee986b5361a6fed1efb7c25] | committer: Geoffrey Métais
Onboarding: Cancel scope on activity destroyed
> https://code.videolan.org/videolan/vlc-android/commit/539760f67a23d3b7dee986b5361a6fed1efb7c25
---
.../src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt b/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt
index f82513d0e..3ddd4b150 100644
--- a/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt
@@ -121,6 +121,11 @@ class OnboardingActivity : AppCompatActivity(), ViewPager.OnPageChangeListener,
if (count == 4) onCustomizedChanged(true)
}
+ override fun onDestroy() {
+ super.onDestroy()
+ cancel()
+ }
+
private fun completeOnBoarding() {
setResult(PreferencesActivity.RESULT_RESTART)
Settings.getInstance(this)
More information about the Android
mailing list