[Android] Onboarding: Cancel scope on activity destroyed
Geoffrey Métais
git at videolan.org
Wed Mar 13 11:30:01 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 13 11:29:30 2019 +0100| [9a4e0f0b569b243a0d5e4b498b9603ea59da859c] | committer: Geoffrey Métais
Onboarding: Cancel scope on activity destroyed
> https://code.videolan.org/videolan/vlc-android/commit/9a4e0f0b569b243a0d5e4b498b9603ea59da859c
---
.../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