Fixed
Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #3
Thanks for the report!
il...@google.com <il...@google.com> #4
The release notes documentation has been edited to clarify this change in behavior for line height.
To support non-standard text sizes, we encourage users to follow the Material design system and use a different style = LocalTextStyle.current.copy(lineHeight = TextUnit.Unspecified)
, or create a custom Typography
entirely.
Description
ShareCompat.IntentBuilder
doesn't create share intents that have theFLAG_GRANT_READ_URI_PERMISSION
flag set andEXTRA_STREAM
values added to the intent's clip data.Often that's not a problem because
Intent.migrateExtraStreamToClipData()
makes the appropriate modifications before the intent leaves the process.Intent.migrateExtraStreamToClipData()
has support for modifying the target intent of a chooser intent. However, the chooser intent itself isn't modified. This leads to the share sheet in Android 10+ not being able to access the content to show the display name or a preview image.Reproduce with:
You'll notice that the share sheet doesn't show a preview image. logcat will contain a message similar to this one:
Note that the final share target will have access to the content. I don't know why this actually works if the URI permission hasn't been granted to the system process showing the share sheet 🤷