summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMichael Hoogasian <michael.hoogasian@gmail.com>2020-03-21 12:14:22 -0400
committerMichael Hoogasian <michael.hoogasian@gmail.com>2020-03-23 14:41:04 -0400
commitbe9f42d83645781b78f9448475156ad44bec23a8 (patch)
treed40cafb15782876800c4e6bd4da1356bd1370f81 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2a9c3e49baae9572f563f18f0bb2a85bafc26a05 (diff)
Prevent HandlerThread from losing interrupted flag
I spent forever trying to figure out why one of my threads was losing its interrupted flag, and eventually chased the problem to this. This change keeps the behavior of blocking until the looper is intialized (i.e, any InterruptedExceptions are still eaten), BUT it will restore the thread's interrupted flag before returning, if needed. Test: calling getLooper() from a thread with the interrupted flag set, then verifying that the interrupted flag was still set after the call returned. Change-Id: If1b1a0812fa672c02510b70faf4d813b82ae8589 Signed-off-by: Michael Hoogasian <michael.hoogasian@gmail.com>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions