Skip to content
Snippets Groups Projects
Commit 66964cbc authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Ensure scan progress is not mistakenly displayed

parent f6f85301
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment