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

Commit 09bb6c91 authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Save screenshot with max priority (in the background)" into 24D1-dev

parents 0942e4c2 1f6224f1
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) {