GameSpace: Don't add floating action if game closed too quickly

We use handler.postDelayed() to draw the floating action with
500ms delay on starting game.
If user opens and closes the game too quickly,
the game is getting closed and called onGameLeave()
before the handler.postDelayed execution so the floating
action is drawn even after closing the game.

Even the worse, user can't close that floating action without
reboot and can create infinite floating actions.

So don't draw the floating action if game closed before that.

Change-Id: I7fc3748137ff6d3fdb71b8b3590580963f4d0c96
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 file changed
tree: b9e1b5571a374c890d3759b02254ffef92564f3e
  1. app/
  2. gradle/
  3. .gitignore
  4. build.gradle
  5. crowdin.yml
  6. gradle.properties
  7. gradlew
  8. LICENSE.md
  9. README.md
  10. settings.gradle
README.md

GameSpace

chaldeaprjkt's GameSpace is an alternative to the Google's proprietary implementation of the Game Dashboard with a goals of providing basic user-interface for the Android Game Mode API.

Gamespace requires several patches to be applied on the AOSP's SystemUI and Settings :

License

This work is licensed under Apache 2.0 License.