Change getEndpoint function name to avoid clashing method signatures.

This commit is contained in:
KotlinGeekDev
2023-10-18 03:30:02 +01:00
parent 26107ff5e9
commit 7b22b96968
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@ class PushDistributorHandler() : PushDistributorActions {
private var endpointInternal = ""
val endpoint = endpointInternal
fun getEndpoint() = endpoint
fun getSavedEndpoint() = endpoint
fun setEndpoint(newEndpoint: String) {
endpointInternal = newEndpoint
}
@@ -12,7 +12,7 @@ object PushNotificationUtils {
return@with
}
try {
RegisterAccounts(accounts).go(pushHandler.getEndpoint())
RegisterAccounts(accounts).go(pushHandler.getSavedEndpoint())
} catch (e: Exception) {
Log.d("Amethyst-OSSPushUtils", "Failed to get endpoint.")
}