Moved contentUpdate receiver in try-block
This commit is contained in:
parent
9c8585b6de
commit
c6af7b542a
|
@ -119,8 +119,12 @@ public class ItemlistFragment extends SherlockListFragment implements
|
|||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
try {
|
||||
getActivity().unregisterReceiver(contentUpdate);
|
||||
|
||||
} catch (IllegalArgumentException e) {
|
||||
Log.w(TAG,
|
||||
"IllegalArgumentException when trying to unregister contentUpdate receiver.");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue