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

Commit

Permalink
Minor code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Apr 5, 2022
1 parent 6a2cc9d commit 48398ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -6,7 +6,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
Expand Down
Expand Up @@ -31,7 +31,7 @@ static void PlatformShowSettingsUI()
{
MainThread.BeginInvokeOnMainThread(() =>
{
var prefsApp = ScriptingBridge.SBApplication.FromBundleIdentifier("com.apple.systempreferences");
var prefsApp = ScriptingBridge.SBApplication.GetApplication("com.apple.systempreferences");
prefsApp.SendMode = ScriptingBridge.AESendMode.NoReply;
prefsApp.Activate();
});
Expand Down
4 changes: 2 additions & 2 deletions Xamarin.Essentials/Geolocation/Geolocation.ios.macos.cs
Expand Up @@ -21,7 +21,7 @@ static async Task<Location> PlatformLastKnownLocationAsync()

var reducedAccuracy = false;
#if __IOS__
if (Platform.HasOSVersion(14,0))
if (Platform.HasOSVersion(14, 0))
{
reducedAccuracy = manager.AccuracyAuthorization == CLAccuracyAuthorization.ReducedAccuracy;
}
Expand Down Expand Up @@ -60,7 +60,7 @@ static async Task<Location> PlatformLocationAsync(GeolocationRequest request, Ca

var reducedAccuracy = false;
#if __IOS__
if (Platform.HasOSVersion(14,0))
if (Platform.HasOSVersion(14, 0))
{
if (request.RequestFullAccuracy && manager.AccuracyAuthorization == CLAccuracyAuthorization.ReducedAccuracy)
{
Expand Down

0 comments on commit 48398ac

Please sign in to comment.