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

Commit 448b06e5 authored by Nikki Moteva's avatar Nikki Moteva
Browse files

System UI: Remove Utils.isDesktopScreenCaptureEnabled

This method is deprecated and all its usages have been migrated to `ScreenCaptureRecordFeatureInteractor`.

Bug: 420990927
Test: Manual
Flag: com.android.systemui.desktop_screen_capture
Change-Id: I120c835ad66357a37afb26862a9aa8008a4a558f
parent 201a2ecd
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);
    }
}