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

This commit is contained in:
TreeHugger Robot
2020-09-14 06:25:33 +00:00
committed by Android (Google) Code Review

View File

@@ -562,7 +562,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;
}