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

Commit ba54d011 authored by Daniel Andersson's avatar Daniel Andersson Committed by Android (Google) Code Review
Browse files

Merge "Desktop screen capture: set correct button text for fullscreen recording" into main

parents 157eda76 53b06e2a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -376,6 +376,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() },
                    )
                }