mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-19 01:10:57 -08:00
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:
parent
ecb1e6c713
commit
55dd110cf3
1 changed files with 8 additions and 2 deletions
|
|
@ -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 ();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue