Refactor getSavedDistributor(). It uses UnifiedPush.getSavedDistributor underneath to preserve pre-API change behaviour.

This commit is contained in:
KotlinGeekDev 2024-05-30 16:04:30 +01:00
parent bc1bbc2f70
commit 8ae7f31c3d

View File

@ -56,7 +56,7 @@ object PushDistributorHandler : PushDistributorActions {
}
override fun getSavedDistributor(): String {
return unifiedPush.getDistributor(appContext)
return unifiedPush.getSavedDistributor(appContext) ?: ""
}
fun savedDistributorExists(): Boolean = getSavedDistributor().isNotEmpty()