Skip to content

Commit

Permalink
Remove sound effects from ItemRowView
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed May 4, 2022
1 parent 0918c73 commit b7cb47b
Showing 1 changed file with 0 additions and 3 deletions.
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

0 comments on commit b7cb47b

Please sign in to comment.