Account for last animated-to-sleep state when calculating nav visibility

- mAnimatedToSleep is true for the duration of the animation to sleep,
  but the last nav visibility is incorrect if it doesn't account for
  the last animated state, which results in the showing the bar to be
  ignored.

Bug: 199536651
Test: atest StatusBarKeyguardViewManagerTest
Test: Enable aod, power off, power on before it fully dozes
Change-Id: I6d3f7f92be567bb561f8cfc62a367c97b00c799d
Merged-In: I6d3f7f92be567bb561f8cfc62a367c97b00c799d
(cherry picked from commit 4df879db93bff04a258a46bf390d7a3519d99b00)
1 file changed