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