Last active
June 30, 2019 09:34
-
-
Save AliAsadi/b5277793d574534c9bebbc2d58e4a2e4 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
protected void onDestroy() { | |
unregisterReceivers(); | |
LocationManager.getInstance().unregister(this); | |
AppState.getInstance().setStateChangeListener(null); | |
LocalBroadcastManager.getInstance(getApplicationContext()) | |
.unregisterReceiver(messageReciver); | |
super.onDestroy(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment