Merge pull request #5005 from ByteHamster/fix-click-through-player

Fixed clicks going through the player
This commit is contained in:
ByteHamster 2021-03-07 11:57:34 +01:00 committed by GitHub
commit 5969df1fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -101,6 +101,7 @@ public class AudioPlayerFragment extends Fragment implements
@Nullable Bundle savedInstanceState) { @Nullable Bundle savedInstanceState) {
super.onCreateView(inflater, container, savedInstanceState); super.onCreateView(inflater, container, savedInstanceState);
View root = inflater.inflate(R.layout.audioplayer_fragment, container, false); 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 = root.findViewById(R.id.toolbar);
toolbar.setTitle(""); toolbar.setTitle("");
toolbar.setNavigationOnClickListener(v -> toolbar.setNavigationOnClickListener(v ->

View File

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