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

Commit 218dbd8e authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restore thread interrupted state on interrupt" into main

parents 9d8c4537 ab0b3510
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ public class TestLooperManager {
                try {
                    execution.wait();
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                }
                if (execution.response != null) {
                    throw new RuntimeException(execution.response);
@@ -231,6 +232,7 @@ public class TestLooperManager {
        try {
            mLooperHolderLatch.await();
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }

@@ -245,6 +247,7 @@ public class TestLooperManager {
                        processMessage(take);
                    }
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                }
            }
        }