Fix unable to resume activity with dismiss-keyguard flag

When the activity with dismiss-keyguard is becoming top because
the other top non-show-when-lock activities are gone, the occluded
state may not been updated that causes activity state stays at
stopped and visible.

Bug: 117859366
Test: atest CtsActivityManagerDeviceTestCases:KeyguardTests# \
            testResumeDismissKeyguardActivityFromBackground

Change-Id: I1dc975a3a45094b163043f0592f422142fb4fc43
1 file changed