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:
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user