Change getEndpoint function name to avoid clashing method signatures.
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
+1
-1
@@ -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.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user