[Android] Start onboarding from main thread

Geoffrey Métais git at videolan.org
Mon Feb 25 10:23:08 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Feb 25 09:31:41 2019 +0100| [03fb9431f807b100cc3777deef127e8cf8532db2] | committer: Geoffrey Métais

Start onboarding from main thread

> https://code.videolan.org/videolan/vlc-android/commit/03fb9431f807b100cc3777deef127e8cf8532db2
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index b5b298840..543875f29 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -112,15 +112,10 @@ public class MainActivity extends ContentActivity implements ExtensionManagerSer
                     }
                 }, 500);
             }
-            WorkersKt.runIO(new Runnable() {
-                @Override
-                public void run() {
-                    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);
-                }
-            });
+            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);
         }
 
         /* Set up the action bar */



More information about the Android mailing list