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