Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Make sure to actually use the correct method (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Jan 20, 2021
1 parent 12bfc8a commit 2ea20b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -210,7 +210,7 @@ class ManagerDelegate : NSObject, ICLLocationManagerDelegate

[Export("locationManagerDidChangeAuthorization:")]
public void DidChangeAuthorization(CLLocationManager manager) =>
AuthorizationStatusChanged?.Invoke(this, new CLAuthorizationChangedEventArgs(manager.AuthorizationStatus));
AuthorizationStatusChanged?.Invoke(this, new CLAuthorizationChangedEventArgs(manager.GetAuthorizationStatus()));
}
}

Expand Down
Expand Up @@ -9,7 +9,7 @@ namespace Xamarin.Essentials
public static partial class LocationExtensions
{
[System.Runtime.InteropServices.DllImport(ObjCRuntime.Constants.ObjectiveCLibrary, EntryPoint = "objc_msgSend")]
public static extern CLAuthorizationStatus CLAuthorizationStatus_objc_msgSend(IntPtr receiver, IntPtr selector);
static extern CLAuthorizationStatus CLAuthorizationStatus_objc_msgSend(IntPtr receiver, IntPtr selector);

internal static Location ToLocation(this CLPlacemark placemark) =>
new Location
Expand Down

0 comments on commit 2ea20b8

Please sign in to comment.