Browse Source

fix: remove unnecessary reset of cached scaling when the SurfaceView is destroyed. (#20448)

pull/20459/head
Shirasagi 4 months ago
committed by GitHub
parent
commit
a8e9c4293f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/Android/Avalonia.Android/Platform/SkiaPlatform/InvalidationAwareSurfaceView.cs

1
src/Android/Avalonia.Android/Platform/SkiaPlatform/InvalidationAwareSurfaceView.cs

@ -61,7 +61,6 @@ namespace Avalonia.Android
.Log(this, "InvalidationAwareSurfaceView Destroyed");
ReleaseNativeWindowHandle();
_size = new PixelSize(1, 1);
_scaling = 1;
}
public virtual void SurfaceRedrawNeeded(ISurfaceHolder holder)

Loading…
Cancel
Save