Merge "Fix navigation input consumer not working when first window is invisible"

This commit is contained in:
Treehugger Robot
2020-09-15 02:18:56 +00:00
committed by Gerrit Code Review

View File

@@ -520,7 +520,8 @@ final class InputMonitor {
}
if (mAddNavInputConsumerHandle) {
mNavInputConsumer.show(mInputTransaction, w);
// We set the layer to z=MAX-1 so that it's always on top.
mNavInputConsumer.show(mInputTransaction, Integer.MAX_VALUE - 1);
mAddNavInputConsumerHandle = false;
}