diff options
author | gleblebedev <gleb@gleblebedev.com> | 2016-10-20 20:15:51 +0100 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-10-20 12:15:51 -0700 |
commit | 40659f4331b8c5d017e3d760bf7379e3ed621e62 (patch) | |
tree | b0061db5788a8d817c117acc627c96396314ae2a /Xamarin.Forms.Platform.Android | |
parent | 76c374f56bf41eae53d8df05d11db659dc825be1 (diff) | |
download | xamarin-forms-40659f4331b8c5d017e3d760bf7379e3ed621e62.tar.gz xamarin-forms-40659f4331b8c5d017e3d760bf7379e3ed621e62.tar.bz2 xamarin-forms-40659f4331b8c5d017e3d760bf7379e3ed621e62.zip |
Check for Actionbar at UpdateActionBar method. (#366)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Platform.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/Platform.cs b/Xamarin.Forms.Platform.Android/Platform.cs index 449a5266..3334ba6e 100644 --- a/Xamarin.Forms.Platform.Android/Platform.cs +++ b/Xamarin.Forms.Platform.Android/Platform.cs @@ -427,6 +427,10 @@ namespace Xamarin.Forms.Platform.Android internal void UpdateActionBar() { + if (ActionBar == null) //Fullscreen theme doesn't have action bar + { + return; + } List<Page> relevantAncestors = AncestorPagesOfPage(_navModel.CurrentPage); IEnumerable<NavigationPage> navPages = relevantAncestors.OfType<NavigationPage>(); |