do not crash if broadcastreceiver was already unregistered

This commit is contained in:
Andrew Dolgov 2016-02-03 20:37:27 +03:00
parent c590f8f16c
commit 80910da272

View File

@ -289,8 +289,12 @@ public class OnlineActivity extends CommonActivity {
@Override
public void onPause() {
super.onPause();
unregisterReceiver(m_broadcastReceiver);
try {
unregisterReceiver(m_broadcastReceiver);
} catch (IllegalArgumentException e) {
e.printStackTrace();
}
}
@Override