From 29645e9dac8835907c4311b296331d55c83974d0 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Sat, 8 Mar 2025 01:19:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`master`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @Osanosa. * https://github.com/Osanosa/ToDos/pull/1#issuecomment-2707850118 The following files were modified: * `app/src/main/java/pro/themed/todos/MainActivity.kt` --- app/src/main/java/pro/themed/todos/MainActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/pro/themed/todos/MainActivity.kt b/app/src/main/java/pro/themed/todos/MainActivity.kt index 72e7a87..aaad86d 100644 --- a/app/src/main/java/pro/themed/todos/MainActivity.kt +++ b/app/src/main/java/pro/themed/todos/MainActivity.kt @@ -52,6 +52,14 @@ class MainActivity : ComponentActivity() { } } +/** + * Displays a to-do item with an interactive checkbox and label. + * + * When tapped, the checkbox toggles its state. A long press opens a dialog displaying the item's label, + * which can be dismissed by tapping outside the dialog. + * + * @param label the text label for the to-do item. Defaults to "Go to the doctor". + */ @OptIn(ExperimentalFoundationApi::class) @Preview(showBackground = true) @Composable