Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sound effects from ItemRowView #1684

Merged
merged 1 commit into from
May 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/src/main/java/org/jellyfin/androidtv/ui/ItemRowView.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.SoundEffectConstants;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
Expand Down Expand Up @@ -56,7 +55,6 @@ public ItemRowView(Context context, BaseItemDto song, int ndx, RowSelectedListen
setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
playSoundEffect(SoundEffectConstants.CLICK);
if (rowClickedListener != null) rowClickedListener.onRowClicked(itemRowView);
}
});
Expand All @@ -81,7 +79,6 @@ protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyF
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
if (gainFocus) {
mWholeRow.setBackgroundResource(R.drawable.jellyfin_button);
playSoundEffect(SoundEffectConstants.getContantForFocusDirection(direction));
if (rowSelectedListener != null) rowSelectedListener.onRowSelected(this);
} else {
mWholeRow.setBackground(normalBackground);
Expand Down