mirror of https://github.com/m2049r/xmrwallet.git
prevent unregisterReceiver if not registered (#387)
This commit is contained in:
parent
5aded68c53
commit
6a2de36578
|
@ -1276,7 +1276,10 @@ public class LoginActivity extends BaseActivity
|
||||||
BroadcastReceiver detachReceiver;
|
BroadcastReceiver detachReceiver;
|
||||||
|
|
||||||
private void unregisterDetachReceiver() {
|
private void unregisterDetachReceiver() {
|
||||||
if (detachReceiver != null) unregisterReceiver(detachReceiver);
|
if (detachReceiver != null) {
|
||||||
|
unregisterReceiver(detachReceiver);
|
||||||
|
detachReceiver = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerDetachReceiver() {
|
private void registerDetachReceiver() {
|
||||||
|
|
Loading…
Reference in New Issue