Update Android port

* java/org/gnu/emacs/EmacsView.java (onLayout): Provide for
occasions where the saved measured dimensions differ from that
saved by the view.
This commit is contained in:
Po Lu 2023-08-27 09:24:01 +08:00
parent ecb1e6c713
commit 55dd110cf3

View file

@ -330,11 +330,17 @@ else if (MeasureSpec.getMode (heightMeasureSpec) == MeasureSpec.AT_MOST
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 ();