summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2017-09-27 18:49:45 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:33:21 (GMT)
commit93495b1208e0d38e2520e7f6e07f8bcc668e8604 (patch)
tree3443a79fc43aec000e64d07b6c1a26fb68d25aab /Xamarin.Forms.Platform.Android
parent9fe8e97c7235dc4e3dfe83f80405d8d7cd14298e (diff)
downloadxamarin-forms-93495b1208e0d38e2520e7f6e07f8bcc668e8604.zip
xamarin-forms-93495b1208e0d38e2520e7f6e07f8bcc668e8604.tar.gz
xamarin-forms-93495b1208e0d38e2520e7f6e07f8bcc668e8604.tar.bz2
remove disallowaddtobackstack (#919)
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/MasterDetailContainer.cs3
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs2
2 files changed, 0 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/MasterDetailContainer.cs b/Xamarin.Forms.Platform.Android/AppCompat/MasterDetailContainer.cs
index 8c7059d..16fe6f6 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/MasterDetailContainer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/MasterDetailContainer.cs
@@ -69,7 +69,6 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
{
// But first, if the previous occupant of this container was a fragment, we need to remove it properly
FragmentTransaction transaction = FragmentManager.BeginTransaction();
- transaction.DisallowAddToBackStack();
transaction.Remove(_currentFragment);
transaction.SetTransition((int)FragmentTransit.None);
@@ -97,7 +96,6 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
});
FragmentTransaction transaction = FragmentManager.BeginTransaction();
- transaction.DisallowAddToBackStack();
if (_currentFragment != null)
{
@@ -141,7 +139,6 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
if (_currentFragment != null && !FragmentManager.IsDestroyed)
{
FragmentTransaction transaction = FragmentManager.BeginTransaction();
- transaction.DisallowAddToBackStack();
transaction.Remove(_currentFragment);
transaction.SetTransition((int)FragmentTransit.None);
transaction.CommitAllowingStateLoss();
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
index e262c60..458dc2f 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/NavigationPageRenderer.cs
@@ -642,8 +642,6 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
if (animated)
SetupPageTransition(transaction, !removed);
- transaction.DisallowAddToBackStack();
-
if (_fragmentStack.Count == 0)
{
transaction.Add(Id, fragment);