Commit fe103f0d authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

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

parent e95fb180
...@@ -258,9 +258,6 @@ public class MainActivity extends SherlockFragmentActivity { ...@@ -258,9 +258,6 @@ public class MainActivity extends SherlockFragmentActivity {
/* Reload the latest preferences */ /* Reload the latest preferences */
reloadPreferences(); reloadPreferences();
/* Load media items from database and storage */
MediaLibrary.getInstance(this).loadMediaItems(this);
/* Load the thumbnailer */ /* Load the thumbnailer */
mThumbnailerManager = new ThumbnailerManager(this, mThumbnailerManager = new ThumbnailerManager(this,
getWindowManager().getDefaultDisplay()); getWindowManager().getDefaultDisplay());
...@@ -307,6 +304,9 @@ public class MainActivity extends SherlockFragmentActivity { ...@@ -307,6 +304,9 @@ public class MainActivity extends SherlockFragmentActivity {
if (startFromNotification) if (startFromNotification)
getIntent().removeExtra(AudioService.START_FROM_NOTIFICATION); getIntent().removeExtra(AudioService.START_FROM_NOTIFICATION);
/* Load media items from database and storage */
MediaLibrary.getInstance(this).loadMediaItems(this);
super.onResume(); super.onResume();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment