From 5ff0c74747c6fc190461b82b0afb7010517898c1 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 3 Jul 2026 02:32:22 +0000
Subject: [PATCH 1/2] Initial plan
From 07567f7cc059225f2d584c7e5da5f273c12196fe Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 3 Jul 2026 02:58:53 +0000
Subject: [PATCH 2/2] Add XML documentation to generic FragmentManager helper
methods
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
---
.../Android.App/FragmentManager.cs | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/Mono.Android/Android.App/FragmentManager.cs b/src/Mono.Android/Android.App/FragmentManager.cs
index b6f421c9b91..5d8500a9130 100644
--- a/src/Mono.Android/Android.App/FragmentManager.cs
+++ b/src/Mono.Android/Android.App/FragmentManager.cs
@@ -5,6 +5,17 @@
#if ANDROID_11
namespace Android.App {
public partial class FragmentManager {
+ ///
+ /// Finds a that was identified by the given id, either when
+ /// inflated from XML or as the container id when added in a transaction, and returns
+ /// it cast to .
+ ///
+ /// The type to cast the result to.
+ /// The resource id or container id used to identify the fragment.
+ ///
+ /// The matching fragment cast to , or
+ /// if no matching fragment exists.
+ ///
public T? FindFragmentById<
[DynamicallyAccessedMembers (Constructors)]
T
@@ -14,6 +25,17 @@ public T? FindFragmentById<
return FindFragmentById (id).JavaCast ();
}
+ ///
+ /// Finds a that was identified by the given tag, either when
+ /// inflated from XML or as supplied when added in a transaction, and returns it cast
+ /// to .
+ ///
+ /// The type to cast the result to.
+ /// The tag used to identify the fragment.
+ ///
+ /// The matching fragment cast to , or
+ /// if no matching fragment exists.
+ ///
public T? FindFragmentByTag<
[DynamicallyAccessedMembers (Constructors)]
T
@@ -23,6 +45,18 @@ public T? FindFragmentByTag<
return FindFragmentByTag (tag).JavaCast ();
}
+ ///
+ /// Retrieves the current instance for a reference previously
+ /// placed in with PutFragment, and returns it cast
+ /// to .
+ ///
+ /// The type to cast the result to.
+ /// The bundle in which the fragment reference was stored.
+ /// The name of the entry in the bundle.
+ ///
+ /// The referenced fragment cast to , or
+ /// if no fragment is associated with the given key.
+ ///
public T? GetFragment<
[DynamicallyAccessedMembers (Constructors)]
T