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

Commit 12e70e96 authored by Nikki Moteva's avatar Nikki Moteva Committed by Android (Google) Code Review
Browse files

Merge "System UI: Remove Utils.isDesktopScreenCaptureEnabled" into main

parents b990a2ff 448b06e5
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -133,15 +133,4 @@ public class Utils {
                .getDimensionPixelSize(R.dimen.status_bar_header_height_keyguard);
        return Math.max(statusBarHeight, statusBarHeaderHeightKeyguard + waterfallInsetTop);
    }

    /**
     * Returns {@code true} if screen capture is enabled and the device is a desktop.
     *
     * @deprecated use ScreenCaptureRecordFeatureInteractor instead.
     */
    @Deprecated
    public static boolean isDesktopScreenCaptureEnabled(Context context) {
        return com.android.systemui.Flags.desktopScreenCapture()
                && context.getResources().getBoolean(R.bool.config_enableDesktopScreenCapture);
    }
}