Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 696fcca5 authored by Ahaan Ugale's avatar Ahaan Ugale Committed by Presubmit Automerger Backend
Browse files

[automerge] Fix Activity leak from ContentCapture Context-Updated event. 2p: 93debeae

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16764050

Bug: 204891006
Change-Id: I3fa393e9f8e78b1e237ceed70e004949a7defe8c
parents 9a191546 93debeae
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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.
     */
    public final void setContentCaptureContext(@Nullable ContentCaptureContext context) {
        if (!isContentCaptureEnabled()) return;

        mClientContext = context;
        updateContentCaptureContext(context);
    }