From f0ff8a6feb1b926927112c564ad6ea17af9a5abd Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 18 Nov 2020 10:09:29 +0100 Subject: [PATCH] Some fixes with video menu --- .../main/java/app/fedilab/fedilabtube/PeertubeActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index f8cbbe4..97b4c29 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -1678,12 +1678,18 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd binding.videoParams.getGlobalVisibleRect(viewRectParams); if (binding.videoParams.getVisibility() == View.VISIBLE && !viewRectParams.contains((int) event.getRawX(), (int) event.getRawY())) { closeMainMenuOptions(); + if (binding.videoParamsSubmenu.getVisibility() == View.VISIBLE) { + closeSubMenuMenuOptions(); + } return true; } Rect viewRectParamsSub = new Rect(); binding.videoParamsSubmenu.getGlobalVisibleRect(viewRectParamsSub); if (binding.videoParamsSubmenu.getVisibility() == View.VISIBLE && !viewRectParamsSub.contains((int) event.getRawX(), (int) event.getRawY())) { closeSubMenuMenuOptions(); + if (binding.videoParams.getVisibility() == View.VISIBLE) { + closeMainMenuOptions(); + } return true; } }