Created
December 24, 2019 10:44
-
-
Save sidishere/f063a7873e83f07afd2f1ec6b9b3ecbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override protected void onDestroy() { super.onDestroy(); | |
// Make sure we're not doing discovery anymore | |
if (bluetoothAdapter != null) | |
{ | |
bluetoothAdapter.cancelDiscovery(); | |
} | |
// Unregister broadcast listeners | |
this.unregisterReceiver(mReceiver); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment