Merge changes from topic "presubmit-am-64e6e8709f7d4e6a844c50eac8f28918" into sc-v2-dev-plus-aosp
* changes:
[automerge] Fix Activity leak from ContentCapture Context-Updated event. 2p: 93debeaead
Fix Activity leak from ContentCapture Context-Updated event.
This commit is contained in:
@@ -290,6 +290,8 @@ public abstract class ContentCaptureSession implements AutoCloseable {
|
|||||||
* <p>Typically used to change the context associated with the default session from an activity.
|
* <p>Typically used to change the context associated with the default session from an activity.
|
||||||
*/
|
*/
|
||||||
public final void setContentCaptureContext(@Nullable ContentCaptureContext context) {
|
public final void setContentCaptureContext(@Nullable ContentCaptureContext context) {
|
||||||
|
if (!isContentCaptureEnabled()) return;
|
||||||
|
|
||||||
mClientContext = context;
|
mClientContext = context;
|
||||||
updateContentCaptureContext(context);
|
updateContentCaptureContext(context);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user