Merge "Keep HUNs that have an active remote input" into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-04-14 01:23:04 +00:00
committed by Android (Google) Code Review

View File

@@ -674,6 +674,13 @@ public class HeadsUpManager implements ViewTreeObserver.OnComputeInternalInsetsL
} else if (!selfFullscreen && otherFullscreen) {
return 1;
}
if (remoteInputActive && !o.remoteInputActive) {
return -1;
} else if (!remoteInputActive && o.remoteInputActive) {
return 1;
}
return postTime < o.postTime ? 1
: postTime == o.postTime ? entry.key.compareTo(o.entry.key)
: -1;