diff options
| author | Filip Pavlis <pavlis@google.com> | 2019-02-06 16:59:18 +0000 |
|---|---|---|
| committer | Filip Pavlis <pavlis@google.com> | 2019-02-06 16:59:18 +0000 |
| commit | 669a752a7c6f667749532726fa2528a0a201a17c (patch) | |
| tree | 786accc02ef8f1bd466a8f91c6e10617a93472cb /core/java/android/widget/GridView.java | |
| parent | fe9f8eb8345203b689628c91bf7eab36a6bd2f77 (diff) | |
Restrict access to mRequestedNumColumns.
There is little value in exposing this as public API as general users
of the GridView have this value as they had to set it via setNumColumns.
Also classes extending GridView can keep track of this value by
overriding setNumColumns.
At the same time I don't see much motivation in needing the value as it
is only used in private method determineColumns.
Also the amount of usage of this field is really low.
Bug: b/123769395
Test: N/A
Change-Id: I0996cd1df2d1c3394b17333762a19a057005137a
Diffstat (limited to 'core/java/android/widget/GridView.java')
| -rw-r--r-- | core/java/android/widget/GridView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/GridView.java b/core/java/android/widget/GridView.java index bf65ec0d5de3..bbbe369d5262 100644 --- a/core/java/android/widget/GridView.java +++ b/core/java/android/widget/GridView.java @@ -123,7 +123,7 @@ public class GridView extends AbsListView { private int mColumnWidth; @UnsupportedAppUsage private int mRequestedColumnWidth; - @UnsupportedAppUsage + @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 123769395) private int mRequestedNumColumns; private View mReferenceView = null; |
