summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorJani Lirkki <jani.lirkki@gmail.com>2016-09-12 11:53:44 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-09-12 11:53:44 (GMT)
commit506a787b60aafd74f0cc457f6fe484577e658f54 (patch)
treefe3f91b07c1174caf58c17b765ddea7a1e0f3442 /Xamarin.Forms.Platform.Android
parenta0bbd185141e045341081ffc2e66225de3ad8ad7 (diff)
downloadxamarin-forms-506a787b60aafd74f0cc457f6fe484577e658f54.zip
xamarin-forms-506a787b60aafd74f0cc457f6fe484577e658f54.tar.gz
xamarin-forms-506a787b60aafd74f0cc457f6fe484577e658f54.tar.bz2
Android AppCompat: Don't do NavigationPage menu updates for disposed page (#331)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
index f591f05..396fe13 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
@@ -670,6 +670,9 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
void UpdateMenu()
{
+ if (_disposed)
+ return;
+
AToolbar bar = _toolbar;
Context context = Context;
IMenu menu = bar.Menu;