Assigned
Status Update
Comments
ve...@google.com <ve...@google.com>
ve...@google.com <ve...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Android build
Which Android build are you using? (e.g. OPP1.170223.012)
Device used
Which device did you use to reproduce this issue?
Steps to reproduce
What steps are needed to reproduce this issue along with environment detail?
For support library issues, use the below steps to help guide reproduction of the issue:
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Android build
Which Android build are you using? (e.g. OPP1.170223.012)
Device used
Which device did you use to reproduce this issue?
Steps to reproduce
What steps are needed to reproduce this issue along with environment detail?
For support library issues, use the below steps to help guide reproduction of the issue:
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
po...@microsoft.com <po...@microsoft.com> #3
Android build
This is not related to any build of Android. This ticket mentions a lint error.
Device used
This is not related to any device. This ticket mentions a lint error.
Steps to reproduce
Please refer to the ticket's first message which will guide you through how to reproduce it.
Please find attached an example app
Run lintDebug on it
Result: lint yield an error
Expected: lint doesn't yield that error.
This is not related to any build of Android. This ticket mentions a lint error.
Device used
This is not related to any device. This ticket mentions a lint error.
Steps to reproduce
Please refer to the ticket's first message which will guide you through how to reproduce it.
Please find attached an example app
Run lintDebug on it
Result: lint yield an error
Expected: lint doesn't yield that error.
Description
setVisibility is a method that we can find in View declaration and I assume the use of it shouldn't be restricted.
It happens to be restricted as VisibilityAwareImageButton overrides it and is annotated by @RestrictTo({Scope.LIBRARY_GROUP})
lib used: 'com.google.android.material:material:1.0.0-rc02'
gradle: gradle-4.6-all.zip
com.android.tools.build:gradle:3.2.0-rc03
androidx.appcompat:appcompat:1.0.0-rc02
compileSdkVersion 28
macOs HighSierra 10.13.6
How to reproduce:
Write this method on an app using com.google.android.material:material:1.0.0-rc02
private void test(final FloatingActionButton fab) {
fab.setVisibility(View.INVISIBLE);
}
Result: lint in Android studio and through gradle cli yield an error. See attached screenshot
Expected: No lint error.