Some fixes with video menu
This commit is contained in:
parent
91a1380fef
commit
f0ff8a6feb
|
@ -1678,12 +1678,18 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
||||||
binding.videoParams.getGlobalVisibleRect(viewRectParams);
|
binding.videoParams.getGlobalVisibleRect(viewRectParams);
|
||||||
if (binding.videoParams.getVisibility() == View.VISIBLE && !viewRectParams.contains((int) event.getRawX(), (int) event.getRawY())) {
|
if (binding.videoParams.getVisibility() == View.VISIBLE && !viewRectParams.contains((int) event.getRawX(), (int) event.getRawY())) {
|
||||||
closeMainMenuOptions();
|
closeMainMenuOptions();
|
||||||
|
if (binding.videoParamsSubmenu.getVisibility() == View.VISIBLE) {
|
||||||
|
closeSubMenuMenuOptions();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Rect viewRectParamsSub = new Rect();
|
Rect viewRectParamsSub = new Rect();
|
||||||
binding.videoParamsSubmenu.getGlobalVisibleRect(viewRectParamsSub);
|
binding.videoParamsSubmenu.getGlobalVisibleRect(viewRectParamsSub);
|
||||||
if (binding.videoParamsSubmenu.getVisibility() == View.VISIBLE && !viewRectParamsSub.contains((int) event.getRawX(), (int) event.getRawY())) {
|
if (binding.videoParamsSubmenu.getVisibility() == View.VISIBLE && !viewRectParamsSub.contains((int) event.getRawX(), (int) event.getRawY())) {
|
||||||
closeSubMenuMenuOptions();
|
closeSubMenuMenuOptions();
|
||||||
|
if (binding.videoParams.getVisibility() == View.VISIBLE) {
|
||||||
|
closeMainMenuOptions();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue