From 0c98a3fa582eb40372447523c22057cec38d0313 Mon Sep 17 00:00:00 2001 From: mlykotom Date: Tue, 6 Dec 2022 22:14:36 +0100 Subject: [PATCH] Add comment Change-Id: I8524c4fbd8c9b95274d82a28e19eceb12da3ef6a --- .../google/samples/apps/nowinandroid/foryou/ForYouActions.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/src/main/java/com/google/samples/apps/nowinandroid/foryou/ForYouActions.kt b/benchmarks/src/main/java/com/google/samples/apps/nowinandroid/foryou/ForYouActions.kt index 25009223e..e540b507e 100644 --- a/benchmarks/src/main/java/com/google/samples/apps/nowinandroid/foryou/ForYouActions.kt +++ b/benchmarks/src/main/java/com/google/samples/apps/nowinandroid/foryou/ForYouActions.kt @@ -45,7 +45,8 @@ fun MacrobenchmarkScope.forYouSelectTopics(recheckTopicsIfChecked: Boolean = fal // Select some topics to show some feed content repeat(3) { index -> - // Selecting topics that are in the first column + // Selecting topics that are in the first column. The visible topics are indexed horizontally first, + // so if we want to select the items in the column, we need to select the 0th, 2th, 4th index. val topic = topics.children[(2 * index) % topics.childCount] // Find the checkable element to figure out whether it's checked or not val topicCheckIcon = topic.findObject(By.checkable(true))