do not crash if broadcastreceiver was already unregistered
This commit is contained in:
parent
c590f8f16c
commit
80910da272
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user