]> git.eshelyaron.com Git - emacs.git/commitdiff
Update Android port
authorPo Lu <luangruo@yahoo.com>
Sun, 27 Aug 2023 01:24:01 +0000 (09:24 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 27 Aug 2023 01:24:01 +0000 (09:24 +0800)
* java/org/gnu/emacs/EmacsView.java (onLayout): Provide for
occasions where the saved measured dimensions differ from that
saved by the view.

java/org/gnu/emacs/EmacsView.java

index 12d8ff4da56bf6d277d09357c3ec4581171505e7..f964f096d888387b8413d3d02551a886b307267f 100644 (file)
@@ -330,11 +330,17 @@ public final class EmacsView extends ViewGroup
        measuredHeight = bottom - top;
       }
 
+    /* If oldMeasuredHeight or oldMeasuredWidth are wrong, set changed
+       to true as well.  */
+
+    if (right - left != oldMeasuredWidth
+       || bottom - top != oldMeasuredHeight)
+      changed = true;
+
     /* Dirty the back buffer if the layout change resulted in the view
        being resized.  */
 
-    if (changed && (right - left != oldMeasuredWidth
-                   || bottom - top != oldMeasuredHeight))
+    if (changed)
       {
        explicitlyDirtyBitmap ();