Fix App flashes when keyboard height changes in split screen mode.

When tapping globe key in the Gboard to switch keyboard, app will flashes
due to DisplayContent.adjustForImeIfNeeded will set adjust IME amount is 0
for adjusting dock bottom stack size, so stack size will have a chance to
back to the size without IME adjustment and then task size resize back to
adjusted size after IME window updated.

Forcing update the last adjust amount from DockedDividerController in
TaskStack.setAdjustedForIme to fix the above case.

Bug: 64362571
Test: manual, first to enable two languages with different keyboard height
    in Gboard's language setting UI, e.g. English and Hindi, and then in
    split-screen mode:
       1) Launch chrome app in bottom stack,
       2) Tapping Editor to let Gboard keyboard shown,
       3) Press global key to switch keyboard.
       4) See if chrome app flashes.

Change-Id: Ieea66640ba29cd4956b69b3c3231315695df85cf
1 file changed