Change getEndpoint function name to avoid clashing method signatures.

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