Fixed BroadcastReceiver being leaked on exit.

This commit is contained in:
Felix Ableitner 2013-12-13 01:02:29 +01:00
parent d2a8aeeb34
commit 5694d45660

View file

@ -207,6 +207,7 @@ public class ServerFragment extends ListFragment implements OnBackPressedListene
public void onDestroy() { public void onDestroy() {
super.onDestroy(); super.onDestroy();
getActivity().getApplicationContext().unbindService(mUpnpServiceConnection); getActivity().getApplicationContext().unbindService(mUpnpServiceConnection);
getActivity().unregisterReceiver(mWifiReceiver);
} }
/** /**