Fixed clicks going through the player

This commit is contained in:
ByteHamster 2021-03-07 11:08:28 +01:00
parent f6e3843813
commit a2e9a4d805
2 changed files with 1 additions and 1 deletions

View File

@ -101,6 +101,7 @@ public class AudioPlayerFragment extends Fragment implements
@Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState);
View root = inflater.inflate(R.layout.audioplayer_fragment, container, false);
root.setOnTouchListener((v, event) -> true); // Avoid clicks going through player to fragments below
toolbar = root.findViewById(R.id.toolbar);
toolbar.setTitle("");
toolbar.setNavigationOnClickListener(v ->

View File

@ -84,7 +84,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:clickable="true"
android:layoutDirection="ltr"
android:orientation="vertical">