Fix some sonar warnings and make some smaller improvements
This commit is contained in:
parent
ac5f991c0c
commit
db5ed48dbb
2 changed files with 5 additions and 9 deletions
|
|
@ -585,11 +585,9 @@ public final class PlayQueueActivity extends AppCompatActivity
|
|||
}
|
||||
|
||||
private void onPlaybackParameterChanged(@Nullable final PlaybackParameters parameters) {
|
||||
if (parameters != null) {
|
||||
if (menu != null && player != null) {
|
||||
final MenuItem item = menu.findItem(R.id.action_playback_speed);
|
||||
item.setTitle(formatSpeed(parameters.speed));
|
||||
}
|
||||
if (parameters != null && menu != null && player != null) {
|
||||
final MenuItem item = menu.findItem(R.id.action_playback_speed);
|
||||
item.setTitle(formatSpeed(parameters.speed));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue