Fix Xamarin iOS build
}
private void OnAppDidEnterBackground(NSNotification notification) {
- lock (self) {
+ lock (this) {
_active = false;
if (_viewContext != null) {
EAGLContext context = EAGLContext.CurrentContext;
}
private void OnAppWillEnterForeground(NSNotification notification) {
- lock (self) {
+ lock (this) {
_active = true;
}
SetNeedsDisplay();
}
protected override void Dispose(bool disposing) {
- lock (self) {
+ lock (this) {
if (_viewContext != null) {
_baseMapView.OnSurfaceDestroyed();
if (EAGLContext.CurrentContext == _viewContext) {
