I\'ve written an accessibility service that uses TYPE_WINDOW_STATE_CHANGED event to detect changes in activity. However I noticed that sometimes the changes aren\'t