Skip to content

Commit

Permalink
Fixed an issue where Subway Surfers occasionally failed to log in
Browse files Browse the repository at this point in the history
  • Loading branch information
DaVinci9196 committed Aug 15, 2024
1 parent 8926cd3 commit e18641a
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,31 +245,6 @@ suspend fun performGamesSignIn(
}
}
GamesConfigurationService.setPlayer(context, packageName, account, result.toString())
if (packageName != GAMES_PACKAGE_NAME) {
try {
suspendCoroutine { continuation ->
queue.add(object : Request<Unit>(Method.POST, "https://www.googleapis.com/games/v1/applications/played", {
continuation.resumeWithException(it)
}) {
override fun parseNetworkResponse(response: NetworkResponse): Response<Unit> {
if (response.statusCode == 204) return success(Unit, null)
return Response.error(VolleyError(response))
}

override fun deliverResponse(response: Unit) {
continuation.resume(response)
}

override fun getHeaders(): MutableMap<String, String> {
return mutableMapOf(
"Authorization" to "OAuth ${authResponse.auth}"
)
}
})
}
} catch (ignored: Exception) {
}
}
}
return true
}

0 comments on commit e18641a

Please sign in to comment.