Skip to content

Commit

Permalink
Merge branch 'main' into deepsource-transform-ac240766
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavAntonyuk authored Aug 20, 2023
2 parents fd28243 + b2e5fb5 commit 50b8922
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:

Expand Down
2 changes: 1 addition & 1 deletion Auth/MauiAuthBlazor/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static MauiApp CreateMauiApp()
builder.Services.RegisterServices();
builder.UseMauiCommunityToolkit();
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Services.AddBlazorWebViewDeveloperTools();
#endif
return builder.Build();
}
Expand Down
2 changes: 1 addition & 1 deletion BottomSheet/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace BottomSheet;

#if ANDROID
using BottomSheetView = Google.Android.Material.BottomSheet.BottomSheetDialog;
using BottomSheetView = Google.Android.Material.BottomSheet.BottomSheetDialog;
#elif IOS || MACCATALYST
using BottomSheetView = UIKit.UIViewController;
#elif TIZEN
Expand Down
9 changes: 6 additions & 3 deletions MauiMaps/Platforms/Android/CustomMapHandler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace MauiMaps;

using System.Linq;
using Android.Gms.Maps;
using Android.Gms.Maps.Model;
using Android.Graphics;
Expand Down Expand Up @@ -38,13 +39,15 @@ protected override void ConnectHandler(MapView platformView)
{
if (handler is CustomMapHandler mapHandler)
{
foreach (var marker in mapHandler.Markers)
var pinsToAdd = map.Pins.Where(x => x.MarkerId == null).ToList();
var pinsToRemove = mapHandler.Markers.Where(x => !map.Pins.Contains(x.pin)).ToList();
foreach (var marker in pinsToRemove)
{
marker.marker.Remove();
mapHandler.Markers.Remove(marker);
}

mapHandler.Markers.Clear();
mapHandler.AddPins(map.Pins);
mapHandler.AddPins(pinsToAdd);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sqlite/MauiSqliteBlazor/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static MauiApp CreateMauiApp()
builder.Services.AddMauiBlazorWebView();
builder.Services.AddSingleton(new AccountRepository("accounts-blazor.db"));
#if DEBUG
builder.Services.AddBlazorWebViewDeveloperTools();
builder.Services.AddBlazorWebViewDeveloperTools();
#endif
return builder.Build();
}
Expand Down

0 comments on commit 50b8922

Please sign in to comment.