Merge "Fix Activity leak from ContentCapture Context-Updated event."
This commit is contained in:
@@ -291,6 +291,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user