Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth button does not show ON/ OFF properly. #4

Closed
kdexd opened this issue Feb 13, 2016 · 0 comments
Closed

Bluetooth button does not show ON/ OFF properly. #4

kdexd opened this issue Feb 13, 2016 · 0 comments

Comments

@kdexd
Copy link

kdexd commented Feb 13, 2016

  • Consider this case :
    • The game is opened first time and Two Player ▶️ Two Devices is chosen.
    • By this a new activity opens, Button text is "OFF".
    • It is pressed so the bluetooth turns ON and Button text changes to "ON".
    • Back button is pressed immediately and then again this activity is visited.
    • Now bluetooth is ON yet the button text is again "OFF".
  • Seems like you set the text as "OFF" in onCreate of activity.
  • Either add a check by examining bluetooth's status and setting button text accordingly, or inside onFinish, turn off the bluetooth if it is ON and display a Toast or Snack Bar that "Bluetooth has been turned off"..

Think about some work around...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant