diff options
| author | 2022-04-04 15:19:46 -0400 | |
|---|---|---|
| committer | 2022-04-04 15:30:17 -0400 | |
| commit | c6ce56069086601db389db9afad0b204d55a3370 (patch) | |
| tree | 8359003d16aeb1bfdeac2c97fe6df10f451f5839 /libs/androidfw/StringPool.cpp | |
| parent | da5263ebd20040fd91aa701e79360c52bae08b0f (diff) | |
Cast copied text to string before sending share intent
EditText#getText returns an Editable (editable buffer), not a string.
This is serializable, so it can be put into the intent without error,
but trying to retrieve it with intent.getStringExtra(Intent.EXTRA_TEXT)
returns null. Casting to a string fixes this problem and allows
destination apps to correctly read the copied (and edited) text.
Bug: 227107111
Fix: 227107111
Test: verified that sharing to e.g. Chat copies the text into the
send box (prior to change it would open the app but copy no text).
Change-Id: I3052677ae65556949351e9d112e81d38dc209bc9
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions