commit | 1e52fddd4b6f7d37dc32f34780206a3139f68fba | [log] [tgz] |
---|---|---|
author | Matt Casey <mrcasey@google.com> | Tue Sep 13 21:08:40 2022 +0000 |
committer | Matt Casey <mrcasey@google.com> | Mon Sep 19 20:31:21 2022 +0000 |
tree | 7c8964c265e9ae4213bf39483e600ce634fdebd4 | |
parent | de117f20ffd67c2aa554ef6772d272ad018d8a0c [diff] |
Fix MIME type of non-plain text share intents Previously we piped the MIME type to sharesheet, which was incorrect. Also switch to ClipData.Item's coerceToText() method to avoid NPE when getText() is null. Also pull all the intent creation code into its own class, test it. Bug: 243447863 Bug: 236932369 Bug: 222640396 Test: atest IntentCreatorTest Test: Share text copied from Chrome, note that the full correct app list comes up. Change-Id: Ia438a40423f518275fcd8a09f7de23c511b116fa