diff options
author | Stefan de Vogelaere <stefan@cavebirdlabs.com> | 2016-07-19 01:20:58 +0200 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-07-18 16:20:58 -0700 |
commit | d1a8477233b28e6a20c6f5d4a75128ec2a05e6dc (patch) | |
tree | e3bba09b40e4189f76f6db8d178d4682bb85b6d6 | |
parent | 9c36f133ad1017b7126330768a8b6c986a051a95 (diff) | |
download | xamarin-forms-d1a8477233b28e6a20c6f5d4a75128ec2a05e6dc.tar.gz xamarin-forms-d1a8477233b28e6a20c6f5d4a75128ec2a05e6dc.tar.bz2 xamarin-forms-d1a8477233b28e6a20c6f5d4a75128ec2a05e6dc.zip |
Fixes issue when setting NavigationPage.SetHasBackButton after page has navigated (Android/AppCompat) (#256)
-rw-r--r-- | Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs index c833e0c5..2bc182da 100644 --- a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs +++ b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs @@ -382,6 +382,8 @@ namespace Xamarin.Forms.Platform.Android.AppCompat ToolbarVisible = NavigationPage.GetHasNavigationBar(Current); else if (e.PropertyName == Page.TitleProperty.PropertyName) UpdateToolbar(); + else if (e.PropertyName == NavigationPage.HasBackButtonProperty.PropertyName) + UpdateToolbar(); } #pragma warning disable 1998 // considered for removal |