summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorgleblebedev <gleb@gleblebedev.com>2016-10-20 20:15:51 +0100
committerJason Smith <jason.smith@xamarin.com>2016-10-20 12:15:51 -0700
commit40659f4331b8c5d017e3d760bf7379e3ed621e62 (patch)
treeb0061db5788a8d817c117acc627c96396314ae2a /Xamarin.Forms.Platform.Android
parent76c374f56bf41eae53d8df05d11db659dc825be1 (diff)
downloadxamarin-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.cs4
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>();