commit | 39553a1b848ee573acb306e3297688df096f404f | [log] [tgz] |
---|---|---|
author | mrenouf <mrenouf@google.com> | Sun Mar 03 12:10:02 2024 -0500 |
committer | mrenouf <mrenouf@google.com> | Sun Mar 03 13:03:00 2024 -0500 |
tree | b9232a20818c0863003e38d512a8cc67ad15ab84 | |
parent | 2b9f86f50bc8b3ee83ffc0be1aed5c87fdd16d72 [diff] |
Fix CreationExtras.addDefaultArgs when args absent addDefaultArgs grabs the existing Bundle from CreationExtras and adds in the additional values. If default args aren't present (whenever the initial intent did not have extras), the updated bundle was never returned within the original instance since it was relying on modifying the Bundle in-place. This corrects the issue by explicitly returning a new instance containing the updated `DEFAULT_ARGS` Bundle. Test: atest com.android.intentresolver.v2.ext.CreationExtrasExtTest Change-Id: I5a7c61baaaeefa2878b4041d809c348bf5ac70c0
IntentResolver
provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder