Fixed BroadcastReceiver being leaked on exit.
This commit is contained in:
parent
d2a8aeeb34
commit
5694d45660
1 changed files with 2 additions and 1 deletions
|
@ -207,6 +207,7 @@ public class ServerFragment extends ListFragment implements OnBackPressedListene
|
|||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
getActivity().getApplicationContext().unbindService(mUpnpServiceConnection);
|
||||
getActivity().unregisterReceiver(mWifiReceiver);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue