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

Commit 1f6224f1 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Save screenshot with max priority (in the background)

Bug: 329659738
Flag: NONE
Test: manual
Change-Id: I14aeebffdb74a8a5a489a2afe49e816f4a7fa62d
parent 53a31c05
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -174,6 +174,8 @@ public class ImageExporter {
        return CallbackToFutureAdapter.getFuture(
                (completer) -> {
                    executor.execute(() -> {
                        // save images as quickly as possible on the background thread
                        Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
                        try {
                            completer.set(task.execute());
                        } catch (ImageExportException | InterruptedException e) {