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

Commit 2ea20b8

Browse files
authored
Make sure to actually use the correct method (#1646)
1 parent 12bfc8a commit 2ea20b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Xamarin.Essentials/Permissions/Permissions.ios.tvos.watchos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void AuthorizationChanged(CLLocationManager manager, CLAuthorizationStatu
210210

211211
[Export("locationManagerDidChangeAuthorization:")]
212212
public void DidChangeAuthorization(CLLocationManager manager) =>
213-
AuthorizationStatusChanged?.Invoke(this, new CLAuthorizationChangedEventArgs(manager.AuthorizationStatus));
213+
AuthorizationStatusChanged?.Invoke(this, new CLAuthorizationChangedEventArgs(manager.GetAuthorizationStatus()));
214214
}
215215
}
216216

Xamarin.Essentials/Types/LocationExtensions.ios.tvos.watchos.macos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Xamarin.Essentials
99
public static partial class LocationExtensions
1010
{
1111
[System.Runtime.InteropServices.DllImport(ObjCRuntime.Constants.ObjectiveCLibrary, EntryPoint = "objc_msgSend")]
12-
public static extern CLAuthorizationStatus CLAuthorizationStatus_objc_msgSend(IntPtr receiver, IntPtr selector);
12+
static extern CLAuthorizationStatus CLAuthorizationStatus_objc_msgSend(IntPtr receiver, IntPtr selector);
1313

1414
internal static Location ToLocation(this CLPlacemark placemark) =>
1515
new Location

0 commit comments

Comments
 (0)