Fix nav bar flickering when dialog shows

Notify the remoteInsetsController after deciding the control targets for
both getStatusControlTarget and getNavControlTarget instead of notify on
the fly.

This is to avoid sending different requestedVisibleTypes with the same
compnent name when a floating window requests different vislbe types from
the top-fullscreen-app.

Bug: 395985750
Test: CTS-V: No Device Owner Test
Flag: NONE (bug fix)
Google: 3503059
Change-Id: I349a34e5b862f4f983d2fc2505dce8904878d7f9
(cherry picked from commit b695dbc75f05d32dca990705c16728acbce3922f)
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
1 file changed