Commit 66964cbc authored by Geoffrey Métais's avatar Geoffrey Métais

Ensure scan progress is not mistakenly displayed

parent f6f85301
......@@ -304,6 +304,8 @@ public class AudioPlayerContainerActivity extends BaseActivity {
}
private void showProgressBar() {
final ScanProgress progress = MediaParsingService.Companion.getProgress().getValue();
if (progress == null || !Medialibrary.getInstance().isWorking()) return;
final View vsc = findViewById(R.id.scan_viewstub);
if (vsc != null) {
vsc.setVisibility(View.VISIBLE);
......
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