Skip to content

Commit 66f0684

Browse files
committed
Key remapping: show notificaton for Channel Up/Down like/dislike
1 parent c66f076 commit 66f0684

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/misc/PlayerKeyTranslator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ public class PlayerKeyTranslator extends GlobalKeyTranslator {
2222
if (playbackPresenter != null && playbackPresenter.getView() != null) {
2323
int currentState = playbackPresenter.getView().getButtonState(R.id.action_thumbs_up);
2424
playbackPresenter.onButtonClicked(R.id.action_thumbs_up, currentState);
25+
MessageHelpers.showMessage(getContext(), currentState == PlayerUI.BUTTON_OFF ? R.string.action_like : R.string.action_like_unset);
2526
}
2627
};
2728
private final Runnable dislikeAction = () -> {
2829
PlaybackPresenter playbackPresenter = getPlaybackPresenter();
2930
if (playbackPresenter != null && playbackPresenter.getView() != null) {
3031
int currentState = playbackPresenter.getView().getButtonState(R.id.action_thumbs_down);
3132
playbackPresenter.onButtonClicked(R.id.action_thumbs_down, currentState);
33+
MessageHelpers.showMessage(getContext(), currentState == PlayerUI.BUTTON_OFF ? R.string.action_dislike : R.string.action_dislike_unset);
3234
}
3335
};
3436
private final Runnable speedUpAction = () -> speedUp(true);

0 commit comments

Comments
 (0)