Commit 63095c6f authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Force restart the scan only if the preferences have been changed

parent 9324c581
......@@ -309,7 +309,7 @@ public class MainActivity extends SherlockFragmentActivity {
/* Load media items from database and storage */
if (mScanNeeded)
MediaLibrary.getInstance(this).loadMediaItems(this, true);
MediaLibrary.getInstance(this).loadMediaItems(this);
super.onResume();
}
......@@ -468,7 +468,7 @@ public class MainActivity extends SherlockFragmentActivity {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == ACTIVITY_RESULT_PREFERENCES) {
if (resultCode == PreferencesActivity.RESULT_RESCAN)
mScanNeeded = true;
MediaLibrary.getInstance(this).loadMediaItems(this, true);
}
}
......
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