GameSpace: Improvements for detecting foreground app exit

* We fixed issue of multiple gamebar instances in https://github.com/crdroidandroid/android_packages_apps_GameSpace/commit/543b89ba013cc5b4068d17c113d95a11ecd19222
* However, the core reason of multiple gamebar was due to the
  fact that previous gamebar didn't exited properly.
* This is likely AOSP issue where onTaskStackChanged() is not
  reporting in-game exit properly.

Ref: https://github.com/crdroidandroid/issue_tracker/issues/556
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
1 file changed