File tree 1 file changed +10
-10
lines changed
sentry-android-core/src/main/java/io/sentry/android/core/internal/util
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 10
10
import android .view .PixelCopy ;
11
11
import android .view .View ;
12
12
import android .view .Window ;
13
-
14
13
import androidx .annotation .Nullable ;
15
14
import io .sentry .ILogger ;
16
15
import io .sentry .SentryLevel ;
20
19
import java .util .concurrent .CountDownLatch ;
21
20
import java .util .concurrent .TimeUnit ;
22
21
import java .util .concurrent .atomic .AtomicBoolean ;
23
-
24
22
import org .jetbrains .annotations .ApiStatus ;
25
23
import org .jetbrains .annotations .NotNull ;
26
24
@@ -77,14 +75,16 @@ public class ScreenshotUtils {
77
75
final AtomicBoolean copyResultSuccess = new AtomicBoolean (false );
78
76
79
77
PixelCopy .request (
80
- window ,
81
- bitmap , copyResult -> {
82
- copyResultSuccess .set (copyResult == PixelCopy .SUCCESS );
83
- latch .countDown ();
84
- },
85
- handler );
86
-
87
- success = latch .await (CAPTURE_TIMEOUT_MS , TimeUnit .MILLISECONDS ) && copyResultSuccess .get ();
78
+ window ,
79
+ bitmap ,
80
+ copyResult -> {
81
+ copyResultSuccess .set (copyResult == PixelCopy .SUCCESS );
82
+ latch .countDown ();
83
+ },
84
+ handler );
85
+
86
+ success =
87
+ latch .await (CAPTURE_TIMEOUT_MS , TimeUnit .MILLISECONDS ) && copyResultSuccess .get ();
88
88
} catch (InterruptedException e ) {
89
89
// ignored
90
90
} finally {
You can’t perform that action at this time.
0 commit comments