mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Replaced exo_play and exo_pause with exo_play_pause
This commit is contained in:
parent
a3861cc3c6
commit
02176b5faa
3 changed files with 4 additions and 30 deletions
|
|
@ -183,14 +183,7 @@ public class PlayerBottomSheetFragment extends Fragment {
|
|||
|
||||
@SuppressLint("UnsafeOptInUsageError")
|
||||
private void setHeaderMediaController() {
|
||||
bind.playerHeaderLayout.playerHeaderButton.setOnClickListener(view -> {
|
||||
if (bind.playerHeaderLayout.playerHeaderButton.isChecked()) {
|
||||
bind.getRoot().findViewById(R.id.exo_play).performClick();
|
||||
} else {
|
||||
bind.getRoot().findViewById(R.id.exo_pause).performClick();
|
||||
}
|
||||
});
|
||||
|
||||
bind.playerHeaderLayout.playerHeaderButton.setOnClickListener(view -> bind.getRoot().findViewById(R.id.exo_play_pause).performClick());
|
||||
bind.playerHeaderLayout.playerHeaderNextMediaButton.setOnClickListener(view -> bind.getRoot().findViewById(R.id.exo_next).performClick());
|
||||
bind.playerHeaderLayout.playerHeaderRewindMediaButton.setOnClickListener(view -> bind.getRoot().findViewById(R.id.exo_rew).performClick());
|
||||
bind.playerHeaderLayout.playerHeaderFastForwardMediaButton.setOnClickListener(view -> bind.getRoot().findViewById(R.id.exo_ffwd).performClick());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue