Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Navigation and AppCompatActivity

$
0
0

Hi all,

I switched from XFormsApplicationDroid (I'm using XLabs) to FormsAppCompatActivity (of course for the Android part of the app)

But now I have a problem...
I have to push a new page and remove the "current" one, so I use this code:

navigation.InsertPageBefore(mypage, Mynav.CurrentPage);
await navigation.PopAsync(false);

All worked well but now that I switched from XFormsApplicationDroid to FormsAppCompatActivity, this code doesn't work anymore (in debug mode, I see that the new page is added under the current one, but then the first page is not removed (so PopAsync doesnt't work).

If I use XFormsApplicationDroid instead of FormsAppCompatActivity, all works well.

I suppose that it's a bug.

Do you know if there is a way to fix it?

Thanks

Marco


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>