OnPause() different behaviors with 8 oreo and 7 no

2019-07-31 10:42发布

问题:

I am trying to enable view when onPause is called by

AppSwitcherFrame.Visibility = ViewStates.Visible;

and when I enter task manager in the android 8, 8.1 it gets visible and everything works as intended.

However, when I am testing it with 7.1 nougat or kitkat then AppSwitcherFrame just blinks and dissapears, in task manager my frame is not visible.

Do you have any solutions?