diff --git a/CHANGELOG.md b/CHANGELOG.md index 07eb4b1a4..460e53735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,9 @@ ## WrapPanel / WrapLayout - Fixed `WrapPanel` to update its layout when a layout property changes. +## Fuse.Views +- Fixed a crash when pushing the back-button on Android. + # 1.8 diff --git a/Source/Fuse.Nodes/MobileBootstrapping.uno b/Source/Fuse.Nodes/MobileBootstrapping.uno index 9c2b9b9fb..df2188122 100644 --- a/Source/Fuse.Nodes/MobileBootstrapping.uno +++ b/Source/Fuse.Nodes/MobileBootstrapping.uno @@ -17,8 +17,11 @@ namespace Fuse Fuse.Platform.Lifecycle.ExitedInteractive += OnExitInteractive; Fuse.Platform.Lifecycle.Terminating += OnTerminating; - Uno.Platform.EventSources.HardwareKeys.KeyDown += KeyboardBootstrapper.OnKeyPressed; - Uno.Platform.EventSources.HardwareKeys.KeyUp += KeyboardBootstrapper.OnKeyReleased; + if defined(Mobile && !Library) + { + Uno.Platform.EventSources.HardwareKeys.KeyDown += KeyboardBootstrapper.OnKeyPressed; + Uno.Platform.EventSources.HardwareKeys.KeyUp += KeyboardBootstrapper.OnKeyReleased; + } } static void OnTerminating(Fuse.Platform.ApplicationState state)