Merge pull request #5005 from ByteHamster/fix-click-through-player
Fixed clicks going through the player
This commit is contained in:
commit
5969df1fd3
|
@ -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 ->
|
||||||
|
|
|
@ -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">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue