Commit bd0f90a6 authored by Bo Liu's avatar Bo Liu Committed by Commit Bot

aw: Fix reachabilityFence version check

The method was added in P, not N.

Bug: 1084615
Change-Id: Ia0772c68b8190f3b0bc775e60c4aabefb59afa48
Tbr: torne@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208366Reviewed-by: default avatarBo <boliu@chromium.org>
Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Commit-Queue: Bo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770207}
parent 606c9401
...@@ -301,7 +301,7 @@ public class AwContentsGarbageCollectionTest { ...@@ -301,7 +301,7 @@ public class AwContentsGarbageCollectionTest {
gcAndCheckAllAwContentsDestroyed(); gcAndCheckAllAwContentsDestroyed();
} finally { } finally {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
Reference.reachabilityFence(heldObject); Reference.reachabilityFence(heldObject);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment