Added a try/catch around an unregisterReceiver call in TLA that would throw a rare exception

pull/14/head
Sam Bosley 14 years ago
parent 7d3e7b863f
commit 9a84a36f56

@ -307,7 +307,11 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
@Override
protected void onStop() {
super.onStop();
try {
unregisterReceiver(tagDeletedReceiver);
} catch (IllegalArgumentException e) {
// Receiver might not be registered if for example activity is stopped before on resume (?)
}
}
public void setSelectedItem(Filter item) {

Loading…
Cancel
Save