diff options
| author | Po Lu <luangruo@yahoo.com> | 2025-02-19 20:42:22 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2025-02-19 20:42:22 +0800 |
| commit | 9faa8d32a3db893db01debaaaa1db79ec1c1b33e (patch) | |
| tree | fe4a8418bcecb75628f619842db0af13f8802b75 /java/org/gnu/emacs/EmacsView.java | |
| parent | 0c8abe8bb5072c46a93585cb325c249f85f3d9c2 (diff) | |
| parent | ded77feffface0c167edacf0d807273f3d4878db (diff) | |
Merge from savannah/emacs-30
ded77fefffa Fix remaining Android bugs reported over the past months
Diffstat (limited to 'java/org/gnu/emacs/EmacsView.java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsView.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/org/gnu/emacs/EmacsView.java b/java/org/gnu/emacs/EmacsView.java index 8af76c73937..5abea711506 100644 --- a/java/org/gnu/emacs/EmacsView.java +++ b/java/org/gnu/emacs/EmacsView.java @@ -296,6 +296,9 @@ public final class EmacsView extends ViewGroup && height > MeasureSpec.getSize (heightMeasureSpec)) height = MeasureSpec.getSize (heightMeasureSpec); + /* This is strictly necessary to propagate layout requests to + children. */ + this.measureChildren (widthMeasureSpec, heightMeasureSpec); super.setMeasuredDimension (width, height); } @@ -467,9 +470,6 @@ public final class EmacsView extends ViewGroup } } - /* This method is called from both the UI thread and the Emacs - thread. */ - public void swapBuffers () { @@ -620,8 +620,7 @@ public final class EmacsView extends ViewGroup detachViewFromParent (index); /* The view at 0 is the surface view. */ - attachViewToParent (child, 1, - child.getLayoutParams ()); + attachViewToParent (child, 1, child.getLayoutParams ()); } } |
