[Android] Prevent Medialibrary start only on first run
Geoffrey Métais
git at videolan.org
Thu Feb 21 17:36:38 CET 2019
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 21 17:28:46 2019 +0100| [ff99c1394f0a88b7e73d971cd98fb069a5dd10b9] | committer: Geoffrey Métais
Prevent Medialibrary start only on first run
> https://code.videolan.org/videolan/vlc-android/commit/ff99c1394f0a88b7e73d971cd98fb069a5dd10b9
---
vlc-android/src/org/videolan/vlc/StartActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/StartActivity.java b/vlc-android/src/org/videolan/vlc/StartActivity.java
index 2d812efd9..65358aab9 100644
--- a/vlc-android/src/org/videolan/vlc/StartActivity.java
+++ b/vlc-android/src/org/videolan/vlc/StartActivity.java
@@ -117,7 +117,7 @@ public class StartActivity extends FragmentActivity {
private void startApplication(final boolean tv, final boolean firstRun, final boolean upgrade, final int target) {
// Start Medialibrary from background to workaround Dispatchers.Main causing ANR
// cf https://github.com/Kotlin/kotlinx.coroutines/issues/878
- if (tv || Settings.INSTANCE.getInstance(StartActivity.this).getBoolean(OnboardingActivityKt.ONBOARDING_DONE_KEY, false)) {
+ if (!firstRun || tv || Settings.INSTANCE.getInstance(StartActivity.this).getBoolean(OnboardingActivityKt.ONBOARDING_DONE_KEY, false)) {
new Thread(new Runnable() {
@Override
public void run() {
More information about the Android
mailing list