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

Commit e7d8df32 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Disable content capture for system apps."

parents 3bd034f3 b66babbf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1023,7 +1023,9 @@ public class Activity extends ContextThemeWrapper
     *
     * @return The content capture manager
     */
    @NonNull private ContentCaptureManager getContentCaptureManager() {
    @Nullable private ContentCaptureManager getContentCaptureManager() {
        // ContextCapture disabled for system apps
        if (getApplicationInfo().isSystemApp()) return null;
        if (mContentCaptureManager == null) {
            mContentCaptureManager = getSystemService(ContentCaptureManager.class);
        }