From 66683a2d85e74afb7dd717a6b3316cf95fc4e8d8 Mon Sep 17 00:00:00 2001 From: sds100 Date: Mon, 5 Aug 2024 12:52:02 +0200 Subject: [PATCH] #1190 fix: add 3 second delay before showing the confirmation message after taking a screenshot with root --- .../github/sds100/keymapper/actions/PerformActionsUseCase.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/github/sds100/keymapper/actions/PerformActionsUseCase.kt b/app/src/main/java/io/github/sds100/keymapper/actions/PerformActionsUseCase.kt index 973e1b7ca5..f418d7eebb 100644 --- a/app/src/main/java/io/github/sds100/keymapper/actions/PerformActionsUseCase.kt +++ b/app/src/main/java/io/github/sds100/keymapper/actions/PerformActionsUseCase.kt @@ -699,6 +699,9 @@ class PerformActionsUseCaseImpl( suAdapter.execute("mkdir -p $screenshotsFolder; screencap -p $screenshotsFolder/Screenshot_$fileDate.png") .onSuccess { + // Wait 3 seconds so the message isn't shown in the screenshot. + delay(3000) + popupMessageAdapter.showPopupMessage( resourceProvider.getString( R.string.toast_screenshot_taken,