Merge pull request #5259 from Isira-Seneviratne/Fix_queue_display

Fix queue display in ServicePlayerActivity.
This commit is contained in:
Tobias Groza 2020-12-23 16:13:47 +01:00 committed by GitHub
commit 318a5df109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -638,12 +638,12 @@ public abstract class ServicePlayerActivity extends AppCompatActivity
case BasePlayer.STATE_COMPLETED:
queueControlBinding.controlPlayPause.setClickable(true);
queueControlBinding.controlPlayPause.setVisibility(View.VISIBLE);
queueControlBinding.progressBar.setVisibility(View.GONE);
queueControlBinding.controlProgressBar.setVisibility(View.GONE);
break;
default:
queueControlBinding.controlPlayPause.setClickable(false);
queueControlBinding.controlPlayPause.setVisibility(View.INVISIBLE);
queueControlBinding.progressBar.setVisibility(View.VISIBLE);
queueControlBinding.controlProgressBar.setVisibility(View.VISIBLE);
break;
}
}