[Android] Prevent onboarding to fire up on upgrade
Geoffrey Métais
git at videolan.org
Thu Feb 21 16:50:02 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 21 16:24:27 2019 +0100| [9e0be85f252d429e4bb573cf0e77e8b599d1d9a6] | committer: Geoffrey Métais
Prevent onboarding to fire up on upgrade
> https://code.videolan.org/videolan/vlc-android/commit/9e0be85f252d429e4bb573cf0e77e8b599d1d9a6
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index ecbd7f9c3..b5b298840 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -115,8 +115,10 @@ public class MainActivity extends ContentActivity implements ExtensionManagerSer
WorkersKt.runIO(new Runnable() {
@Override
public void run() {
- if (!mSettings.getBoolean(OnboardingActivityKt.ONBOARDING_DONE_KEY, false)) OnboardingActivityKt.startOnboarding(MainActivity.this);
- else Permissions.checkReadStoragePermission(MainActivity.this, false);
+ if (getIntent().getBooleanExtra(Constants.EXTRA_FIRST_RUN, false)
+ && !mSettings.getBoolean(OnboardingActivityKt.ONBOARDING_DONE_KEY, false)) {
+ OnboardingActivityKt.startOnboarding(MainActivity.this);
+ } else Permissions.checkReadStoragePermission(MainActivity.this, false);
}
});
}
More information about the Android
mailing list