Moved contentUpdate receiver in try-block

This commit is contained in:
daniel oeh 2012-09-08 13:32:30 +02:00
parent 9c8585b6de
commit c6af7b542a
1 changed files with 6 additions and 2 deletions

View File

@ -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