Status Update
Comments
ki...@google.com <ki...@google.com> #2
Known issue, we cannot do anything because AGP doesn't provide an API to fetch Kotlin sources (specifically here
ja...@google.com <ja...@google.com> #3
Would you be opposed to failing the build if we see a src/kotlin
directory?
ja...@google.com <ja...@google.com> #4
No, go ahead if you want to add that check.
ul...@gmail.com <ul...@gmail.com> #5
Adding to bounty list since this isn't a frequent occurrence.
- Sponsor: alanv
- Tech stack: Gradle build plugin
- Summary: Add check in
AndroidXPluginImpl
that raises an exception if a project is usingsrc/kotlin
for its source sets. The exception should indicate thatsrc/kotlin
is not fully supported by AGP and thatsrc/java
should be used instead.
ja...@google.com <ja...@google.com> #6
I'm seeing one library that's using src/main/kotlin
and seems to generate API files without issue: paging/paging-common
. Aurimas, any idea what might be going on there?
ja...@google.com <ja...@google.com> #7
That library is
plugins {
id("AndroidXPlugin")
id("kotlin")
}
a non android library and we use a different path for java/kotlin libraries.
al...@google.com <al...@google.com> #8
So correction is that metalava doesnt track APIs under src/main/kotlin for android projects.
sa...@google.com <sa...@google.com>
al...@google.com <al...@google.com> #9
Thanks! Uploaded a CL that migrates the only two library projects that were using src/main/kotlin
.
Description
If you create an AlertDialog without a title/message, the title/message views are hidden. If you then afterwards try to set the title/message of the alert, the views are not set to be visible.
The title/message views should be set to visible when calling the
AlertDialog.setTitle(...)
andAlertDialog.setMessage(...)
methods.Usecase: I have a custom DialogFragment that uses an AlertDialog. I need to load some data. While it's loading I can not yet display a title/message. Therefore I create the dialog without them and display a loading indicator. After the data has loaded, I want to set the title/message of the AlertDialog but the views stay hidden.