Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 209eb498 authored by Qasid Ahmad Sadiq's avatar Qasid Ahmad Sadiq
Browse files

Update CollectionInfo comment to indicate -1 is ambiguous count.

REcyclerView falls into this, and talkback will start treating this that way.
Let's document it explicitly.

Bug: 137113167
Test: I can read it.
Change-Id: I8d540182ffb1deb20fdbc2e59fbcd7d0ac57ab9d
parent c7ccc2cd
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4745,8 +4745,8 @@ public class AccessibilityNodeInfo implements Parcelable {
        /**
         * Obtains a pooled instance.
         *
         * @param rowCount The number of rows.
         * @param columnCount The number of columns.
         * @param rowCount The number of rows, or -1 if count is unknown.
         * @param columnCount The number of columns, or -1 if count is unknown.
         * @param hierarchical Whether the collection is hierarchical.
         */
        public static CollectionInfo obtain(int rowCount, int columnCount,
@@ -4800,7 +4800,7 @@ public class AccessibilityNodeInfo implements Parcelable {
        /**
         * Gets the number of rows.
         *
         * @return The row count.
         * @return The row count, or -1 if count is unknown.
         */
        public int getRowCount() {
            return mRowCount;
@@ -4809,7 +4809,7 @@ public class AccessibilityNodeInfo implements Parcelable {
        /**
         * Gets the number of columns.
         *
         * @return The column count.
         * @return The column count, or -1 if count is unknown.
         */
        public int getColumnCount() {
            return mColumnCount;