mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 02:42:34 +02:00
Refactor getSavedDistributor(). It uses UnifiedPush.getSavedDistributor underneath to preserve pre-API change behaviour.
This commit is contained in:
@@ -56,7 +56,7 @@ object PushDistributorHandler : PushDistributorActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getSavedDistributor(): String {
|
override fun getSavedDistributor(): String {
|
||||||
return unifiedPush.getDistributor(appContext)
|
return unifiedPush.getSavedDistributor(appContext) ?: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
fun savedDistributorExists(): Boolean = getSavedDistributor().isNotEmpty()
|
fun savedDistributorExists(): Boolean = getSavedDistributor().isNotEmpty()
|
||||||
|
Reference in New Issue
Block a user