summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authorPaul DiPietro <pauldipietro@users.noreply.github.com>2016-08-30 18:34:37 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-08-30 18:34:37 (GMT)
commit88b15d7d1f40a19d35ed5daed16bdfe2a32adc76 (patch)
tree7e3fac4f62a4a0795f3c18cbc5ec1f72ca9f63f3 /Xamarin.Forms.Platform.Android
parentf1f0a77e1513a248f852a249c69891ce7ed0a8d5 (diff)
downloadxamarin-forms-88b15d7d1f40a19d35ed5daed16bdfe2a32adc76.zip
xamarin-forms-88b15d7d1f40a19d35ed5daed16bdfe2a32adc76.tar.gz
xamarin-forms-88b15d7d1f40a19d35ed5daed16bdfe2a32adc76.tar.bz2
[A] Check UserVisibleHint to prevent non-active tabs from firing SendAppearing in OnResume (#328)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/FragmentContainer.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/FragmentContainer.cs b/Xamarin.Forms.Platform.Android/AppCompat/FragmentContainer.cs
index 3d85ee0..7c7b525 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/FragmentContainer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/FragmentContainer.cs
@@ -127,7 +127,8 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
public override void OnResume()
{
- PageController?.SendAppearing();
+ if (UserVisibleHint)
+ PageController?.SendAppearing();
base.OnResume();
}
}