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 = ""
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user