mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 05:55:57 +00:00
Fix PIP positioning in video calls.
This commit is contained in:
@@ -98,12 +98,12 @@ public class PictureInPictureGestureHelper extends GestureDetector.SimpleOnGestu
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void clearVerticalBoundaries() {
|
public void clearVerticalBoundaries() {
|
||||||
setVerticalBoundaries(0, parent.getMeasuredHeight());
|
setVerticalBoundaries(parent.getTop(), parent.getMeasuredHeight() + parent.getTop());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVerticalBoundaries(int topBoundary, int bottomBoundary) {
|
public void setVerticalBoundaries(int topBoundary, int bottomBoundary) {
|
||||||
extraPaddingTop = topBoundary;
|
extraPaddingTop = topBoundary - parent.getTop();
|
||||||
extraPaddingBottom = parent.getMeasuredHeight() - bottomBoundary;
|
extraPaddingBottom = parent.getMeasuredHeight() + parent.getTop() - bottomBoundary;
|
||||||
|
|
||||||
if (isAnimating) {
|
if (isAnimating) {
|
||||||
fling();
|
fling();
|
||||||
|
Reference in New Issue
Block a user