Update display before dispatching config change

When #onConfgurationChanged is called, developers may use combination
of configuration and displayMetrics for UI rendering.

However, it could be wrong because the confg callback is dispatched
before updating display for WindowContext and InputMethodService.

This CL moves #updateDisplay before dispatching #onConfgurationChanged.

Bug: 320375083
Test: manual
Change-Id: I4fe919a09c487ec874e5124aecfe2b934676f429
1 file changed