fixing wrong initial push registrar selection
This commit is contained in:
parent
eff150aebc
commit
2718728bb8
|
@ -55,7 +55,7 @@ class PushTokenRegistrars(
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun registerCurrentToken() {
|
override suspend fun registerCurrentToken() {
|
||||||
when (selection) {
|
when (currentSelection()) {
|
||||||
FIREBASE_OPTION -> messagingPushTokenRegistrar.registerCurrentToken()
|
FIREBASE_OPTION -> messagingPushTokenRegistrar.registerCurrentToken()
|
||||||
NONE -> {
|
NONE -> {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
@ -75,6 +75,10 @@ class PushTokenRegistrars(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
null -> {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
|
|
||||||
else -> unifiedPushRegistrar.unregister()
|
else -> unifiedPushRegistrar.unregister()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue