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
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
getActivity().unregisterReceiver(contentUpdate);
|
try {
|
||||||
|
getActivity().unregisterReceiver(contentUpdate);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
Log.w(TAG,
|
||||||
|
"IllegalArgumentException when trying to unregister contentUpdate receiver.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user