diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-07-18 17:30:41 -0600 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-07-18 16:30:41 -0700 |
commit | be9f626c37949cc56c5f6901dac93093f3016fbf (patch) | |
tree | 69cef97f14be15726b694bce14c21eb023b1f7dc /Xamarin.Forms.Controls.Issues | |
parent | d52f110d78cc66441c32520acedc752cd949c0ac (diff) | |
download | xamarin-forms-be9f626c37949cc56c5f6901dac93093f3016fbf.tar.gz xamarin-forms-be9f626c37949cc56c5f6901dac93093f3016fbf.tar.bz2 xamarin-forms-be9f626c37949cc56c5f6901dac93093f3016fbf.zip |
Prevent FormsAppCompatActivity from loading fragments we don't use on restart (#246)
* Prevent FormsAppCompatActivity from loading fragments we don't use on restart
* Adding issues lost in merge
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
2 files changed, 40 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42075.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42075.cs new file mode 100644 index 00000000..fd599ead --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla42075.cs @@ -0,0 +1,39 @@ +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +namespace Xamarin.Forms.Controls +{ + [Preserve (AllMembers = true)] + [Issue (IssueTracker.Bugzilla, 42075, "IllegalStateException - Fragment does not have a view", PlatformAffected.Android)] + public class Bugzilla42075 : TestTabbedPage + { + protected override void Init() + { + Title = "Outer"; + + const string text = @"To run this test, you'll need to have an emulator or device in Developer mode, with the ""Don't Keep Activities"" setting turned on. +Hit the Home button to dismiss the application. Then bring up the Overview (recent apps) screen and select the Control Gallery. +If the application crashes with ""Java.Lang.IllegalStateException: Fragment does not have a view"", this test has failed. If the application does not crash or crashes with a different exception, this test has passed."; + + var directions = new ContentPage + { + Content = new StackLayout() + { + Children = + { + new Label() + { + Text = text + } + } + } + }; + + var tabbedPage = new TabbedPage() {Title = "Inner"}; + tabbedPage.Children.Add(new ContentPage()); + + Children.Add(directions); + Children.Add(tabbedPage); + } + } +}
\ 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 30ad7ee4..85c287f5 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 @@ -110,6 +110,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla41205.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla41424.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla42074.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla42075.cs" /> <Compile Include="$(MSBuildThisFileDirectory)CarouselAsync.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla34561.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla34727.cs" /> |