mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-05 08:33:07 +00:00
Simplified if statement
This commit is contained in:
@@ -268,11 +268,7 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
|||||||
|
|
||||||
private void initMusicCommandUnfoldButton() {
|
private void initMusicCommandUnfoldButton() {
|
||||||
bodyBind.playerCommandUnfoldButton.setOnClickListener(view -> {
|
bodyBind.playerCommandUnfoldButton.setOnClickListener(view -> {
|
||||||
if (bodyBind.playerCommandCardview.getVisibility() == View.INVISIBLE || bodyBind.playerCommandCardview.getVisibility() == View.GONE) {
|
setPlayerCommandViewVisibility(bodyBind.playerCommandCardview.getVisibility() == View.INVISIBLE || bodyBind.playerCommandCardview.getVisibility() == View.GONE);
|
||||||
setPlayerCommandViewVisibility(true);
|
|
||||||
} else {
|
|
||||||
setPlayerCommandViewVisibility(false);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user