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

Commit 53b06e2a authored by Daniel Andersson's avatar Daniel Andersson
Browse files

Desktop screen capture: set correct button text for fullscreen recording

This CL changes the text of the capture button in the full screen
capture UI to read "Record entire screen" instead of "Take screenshot of
entire screen" when screen recording is enabled.

Bug: 436891244
Test: Manual
Flag: com.android.systemui.large_screen_screencapture
Change-Id: I62745e172ece23332d4926aeccdd451260d87c1b
parent ddc3ad5e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -367,6 +367,8 @@

    <!-- Button text for taking a fullscreen screenshot [CHAR LIMIT=50] -->
    <string name="screen_capture_fullscreen_screenshot_button">Take screenshot of entire screen</string>
    <!-- Button text for taking a fullscreen screenshot [CHAR LIMIT=50] -->
    <string name="screen_capture_fullscreen_record_button">Record entire screen</string>
    <!-- Button text for taking a screenshot of the selected area using the region box. [CHAR LIMIT=50] -->
    <string name="screen_capture_region_selection_button">Take screenshot of selected area</string>
    <!-- Button text in the region select box for triggering a recording of the selected area. [CHAR LIMIT=35] -->
+9 −1
Original line number Diff line number Diff line
@@ -74,7 +74,15 @@ fun PreCaptureUI(viewModel: PreCaptureViewModel) {
                                    contentDescription = null,
                                )
                                .value,
                        text = stringResource(R.string.screen_capture_fullscreen_screenshot_button),
                        text =
                            stringResource(
                                when (viewModel.captureType) {
                                    ScreenCaptureType.SCREENSHOT ->
                                        R.string.screen_capture_fullscreen_screenshot_button
                                    ScreenCaptureType.SCREEN_RECORD ->
                                        R.string.screen_capture_fullscreen_record_button
                                }
                            ),
                        onClick = { viewModel.takeFullscreenScreenshot() },
                    )
                }