mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-12-01 12:31:45 +00:00
Moved contentUpdate receiver in try-block
This commit is contained in:
@ -119,8 +119,12 @@ public class ItemlistFragment extends SherlockListFragment implements
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
getActivity().unregisterReceiver(contentUpdate);
|
||||
|
||||
try {
|
||||
getActivity().unregisterReceiver(contentUpdate);
|
||||
} catch (IllegalArgumentException e) {
|
||||
Log.w(TAG,
|
||||
"IllegalArgumentException when trying to unregister contentUpdate receiver.");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user