diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2016-11-15 16:35:24 -0600 |
---|---|---|
committer | E.Z. Hart <hartez@users.noreply.github.com> | 2016-11-15 15:35:24 -0700 |
commit | ffab780c2acd9ef49268d731e14b11b5fdbc3293 (patch) | |
tree | eb3ff3b5ef080bcab528e0cccd4ed37c4527f4e9 /Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared | |
parent | 0ccae8a3af5f2617fe621562fbbdaac3df7e7b31 (diff) | |
download | xamarin-forms-ffab780c2acd9ef49268d731e14b11b5fdbc3293.tar.gz xamarin-forms-ffab780c2acd9ef49268d731e14b11b5fdbc3293.tar.bz2 xamarin-forms-ffab780c2acd9ef49268d731e14b11b5fdbc3293.zip |
fix MasterDetailPage dispose (#505)
Diffstat (limited to 'Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared')
2 files changed, 37 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla46494.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla46494.cs new file mode 100644 index 00000000..bdb24150 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla46494.cs @@ -0,0 +1,36 @@ +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +#if UITEST +using Xamarin.UITest; +using NUnit.Framework; +#endif + +namespace Xamarin.Forms.Controls +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 46494, "Hardware/Software back button from MainPage of type MasterDetail causes crash 'java.lang.IllegalStateException: Activity has been destroyed'", PlatformAffected.Android)] + public class Bugzilla46494 : TestMasterDetailPage + { + protected override void Init() + { + Master = new ContentPage { Title = "Master", BackgroundColor = Color.Blue }; + Detail = new NavigationPage( + new ContentPage + { + Title = "Detail", + BackgroundColor = Color.Red, + Content = new ContentView + { + Content = new Label + { + Text = "Hit Back button to destroy Activity. Disposing Fragment should not run into a race condition with Activity destroy.", + HorizontalTextAlignment = TextAlignment.Center, + VerticalTextAlignment = TextAlignment.Center + } + } + } + ); + } + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index fb70cf67..dc1e6040 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -136,6 +136,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44044.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44338.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla45743.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla46494.cs" /> <Compile Include="$(MSBuildThisFileDirectory)CarouselAsync.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla34561.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla34727.cs" /> |