diff options
| author | 2016-11-25 17:39:36 +0000 | |
|---|---|---|
| committer | 2016-11-25 17:39:40 +0000 | |
| commit | 586bc60a0b00a3fe96ef00edfc32e91baa713b65 (patch) | |
| tree | 0c778bc14d1275a1a32bf209412b1d965bc3b733 | |
| parent | bbef8cdd2aafa95937b466af7e2d572b69e62810 (diff) | |
| parent | 51d00d88ed8336b198d5fc7d48d35d06e935a30e (diff) | |
Merge "Workaround for javac compilation issue of lambda code"
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowState.java | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index 661df9cd60ad..59c910274909 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -546,17 +546,22 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP * Compares two window sub-layers and returns -1 if the first is lesser than the second in terms * of z-order and 1 otherwise. */ - private static final Comparator<WindowState> sWindowSubLayerComparator = (w1, w2) -> { - final int layer1 = w1.mSubLayer; - final int layer2 = w2.mSubLayer; - if (layer1 < layer2 || (layer1 == layer2 && layer2 < 0 )) { - // We insert the child window into the list ordered by the sub-layer. - // For same sub-layers, the negative one should go below others; the positive one should - // go above others. - return -1; - } - return 1; - }; + private static final Comparator<WindowState> sWindowSubLayerComparator = + new Comparator<WindowState>() { + @Override + public int compare(WindowState w1, WindowState w2) { + final int layer1 = w1.mSubLayer; + final int layer2 = w2.mSubLayer; + if (layer1 < layer2 || (layer1 == layer2 && layer2 < 0 )) { + // We insert the child window into the list ordered by + // the sub-layer. For same sub-layers, the negative one + // should go below others; the positive one should go + // above others. + return -1; + } + return 1; + }; + }; WindowState(WindowManagerService service, Session s, IWindow c, WindowToken token, WindowState parentWindow, int appOp, int seq, WindowManager.LayoutParams a, |