[Android] MainActivity: allow the scan to be resumed after the user walk away from the activity

Ludovic Fauvet git at videolan.org
Mon Oct 1 16:03:52 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Oct  1 12:36:03 2012 +0200| [fe103f0d6b7dcdba52200c0a03bb57941adfd819] | committer: Ludovic Fauvet

MainActivity: allow the scan to be resumed after the user walk away from the activity

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=fe103f0d6b7dcdba52200c0a03bb57941adfd819
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index ca6d60e..ac95e88 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -258,9 +258,6 @@ public class MainActivity extends SherlockFragmentActivity {
         /* Reload the latest preferences */
         reloadPreferences();
 
-        /* Load media items from database and storage */
-        MediaLibrary.getInstance(this).loadMediaItems(this);
-
         /* Load the thumbnailer */
         mThumbnailerManager = new ThumbnailerManager(this,
                 getWindowManager().getDefaultDisplay());
@@ -307,6 +304,9 @@ public class MainActivity extends SherlockFragmentActivity {
         if (startFromNotification)
             getIntent().removeExtra(AudioService.START_FROM_NOTIFICATION);
 
+        /* Load media items from database and storage */
+        MediaLibrary.getInstance(this).loadMediaItems(this);
+
         super.onResume();
     }
 



More information about the Android mailing list