From 22a37615db96e9e79dd74c4f752f14a225de5989 Mon Sep 17 00:00:00 2001 From: Skeletrobro <67814129+baronhsieh2005@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:13:09 -0400 Subject: [PATCH] Linting --- .../src/main/java/com/pennapps/labs/pennmobile/GsrFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/GsrFragment.kt b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/GsrFragment.kt index 2c2c0bbb..a447a054 100644 --- a/PennMobile/src/main/java/com/pennapps/labs/pennmobile/GsrFragment.kt +++ b/PennMobile/src/main/java/com/pennapps/labs/pennmobile/GsrFragment.kt @@ -684,6 +684,7 @@ class GsrFragment : Fragment() { mGSRS.add(newGSRObject) } } + fun checkIfFragmentAttached(operation: Context.() -> Unit) { if (isAdded && context != null) { operation(requireContext())