Commit d264d3b6 authored by Thomas Guillem's avatar Thomas Guillem

MainActivity: don't stop scan when configuration changes

parent d51611b6
......@@ -409,10 +409,12 @@ public class MainActivity extends AudioPlayerContainerActivity implements Filter
@Override
protected void onPause() {
super.onPause();
/* Check for an ongoing scan that needs to be resumed during onResume */
mScanNeeded = mMediaLibrary.isWorking();
/* Stop scanning for files */
mMediaLibrary.stop();
if (getChangingConfigurations() == 0) {
/* Check for an ongoing scan that needs to be resumed during onResume */
mScanNeeded = mMediaLibrary.isWorking();
/* Stop scanning for files */
mMediaLibrary.stop();
}
/* Save the tab status in pref */
SharedPreferences.Editor editor = mSettings.edit();
editor.putInt("fragment_id", mCurrentFragmentId);
......
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