Fixed
Status Update
Comments
di...@google.com <di...@google.com>
da...@google.com <da...@google.com> #2
Thanks for the report! I believe this has already been fixed in 3.6, but without concrete repro steps I can't confirm. Can you add any additional details? Or, would you mind downloading the latest canary and seeing if the problem still exists there?
gl...@gmail.com <gl...@gmail.com> #3
Just tried it 3.6 and I'm seeing the same behavior. I've attached a sample project.
In the project:
- There are 3 modules :app, :blue and :red
- :app implements :blue and :red
- :blue and :red are independent modules, they have no dependencies on other modules
- Each module has a single activity and layout
- The activity in :blue (BlueActivity) is marked as `internal`
My observations:
(1) A class is visible in auto-complete despite lack of dependencies on the module containing that class.
------ ex. class RedActivity is visible in :blue layout
(2) A class is visible in auto-complete despite being internal
------ ex. internal class BlueActivity is visible in :app and :red layouts
---
Android Studio 3.6 Canary 12
Build #AI-192.6262.58.36.5871855, built on September 12, 2019
In the project:
- There are 3 modules :app, :blue and :red
- :app implements :blue and :red
- :blue and :red are independent modules, they have no dependencies on other modules
- Each module has a single activity and layout
- The activity in :blue (BlueActivity) is marked as `internal`
My observations:
(1) A class is visible in auto-complete despite lack of dependencies on the module containing that class.
------ ex. class RedActivity is visible in :blue layout
(2) A class is visible in auto-complete despite being internal
------ ex. internal class BlueActivity is visible in :app and :red layouts
---
Android Studio 3.6 Canary 12
Build #AI-192.6262.58.36.5871855, built on September 12, 2019
da...@google.com <da...@google.com> #4
Thank you for the additional details and sample project! I've accepted this to make sure I won't lose track of it, but it will be at least a few days before I can get to it.
pi...@gmail.com <pi...@gmail.com> #5
da...@google.com <da...@google.com> #6
Thanks for your patience. Taking a look now.
da...@google.com <da...@google.com> #7
Thank you OP for attaching your project. It really helped with chasing down this issue.
A fix for this should land in 4.0 Canary 5.
A fix for this should land in 4.0 Canary 5.
gl...@gmail.com <gl...@gmail.com> #8
Nice, thanks for taking care of that one. I've since switched back to just a single module project.. but I'm sure this will be helpful for devs with larger projects.
Description
---
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 8, 2019