1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-27 21:53:57 +00:00

PM-3350 Checked some [MAUI-Migration] and changed as needed.

TimePickerHandlerMappings: Remove old code for forcing the Wheel. After testing without it wheel picker is still used so this code shouldn't be needed anymore.
AppDelegate.ContinueUserActivity: Uncommented and changed the iOS ContinueUserActivity. It needs to call Platform.ContinueUserActivity according with Xamarin Essentials migration docs.
This commit is contained in:
Dinis Vieira
2023-10-24 23:37:18 +01:00
parent f177968958
commit e7aeb08cae
3 changed files with 4 additions and 20 deletions

View File

@@ -20,21 +20,6 @@ namespace Bit.iOS.Core.Handlers
{
handler.PlatformView.Text = extTimePicker.PlaceHolder;
}
// force use of wheel picker on iOS 14+
// TODO remove this when we upgrade to X.F 5 SR-1
// TODO: [Maui-Migration] Check if this is needed given that we're not on XForms anymore.
// https://github.com/xamarin/Xamarin.Forms/issues/12258#issuecomment-700168665
try
{
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 2)
&&
handler.PlatformView.InputView is UIDatePicker picker)
{
picker.PreferredDatePickerStyle = UIDatePickerStyle.Wheels;
}
}
catch { }
}
});