Skip to content

Commit 35c022c

Browse files
authored
Update comments in MyComplicationDataSourceService.kt, visible in Android developer documentation
1 parent dd30aee commit 35c022c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wear/src/main/java/com/example/wear/snippets/complication/MyComplicationDataSourceService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import androidx.wear.watchface.complications.datasource.SuspendingComplicationDa
2626
// [START android_wear_complication]
2727
class MyComplicationDataSourceService : SuspendingComplicationDataSourceService() {
2828
override suspend fun onComplicationRequest(request: ComplicationRequest): ComplicationData? {
29-
// Retrieve latest info for inclusion in the data
29+
// Retrieve the latest info for inclusion in the data.
3030
val text = getLatestData()
3131
return shortTextComplicationData(text)
3232
}
@@ -40,7 +40,7 @@ class MyComplicationDataSourceService : SuspendingComplicationDataSourceService(
4040
text = PlainComplicationText.Builder(text).build(),
4141
contentDescription = PlainComplicationText.Builder(text).build()
4242
)
43-
// Add further optional details here such as icon, tap action, title etc
43+
// Add further optional details here such as icon, tap action, and title.
4444
.build()
4545

4646
// [START_EXCLUDE]

0 commit comments

Comments
 (0)