Skip to content

Commit

Permalink
Update permission_handler_windows_plugin.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
krll-kov authored Sep 27, 2024
1 parent 416e7b0 commit 32b2b03
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,14 @@ void PermissionHandlerWindowsPlugin::RegisterWithRegistrar(
}

PermissionHandlerWindowsPlugin::PermissionHandlerWindowsPlugin(){
m_positionChangedRevoker = geolocator.PositionChanged(winrt::auto_revoke,
[this](Geolocator const& geolocator, PositionChangedEventArgs e)
{
});
try {
m_positionChangedRevoker = geolocator.PositionChanged(winrt::auto_revoke,
[this](Geolocator const& geolocator, PositionChangedEventArgs e)
{
});
} catch (...) {
/* Do nothing */
}
}

PermissionHandlerWindowsPlugin::~PermissionHandlerWindowsPlugin() = default;
Expand Down

0 comments on commit 32b2b03

Please sign in to comment.