From 4f9c122476746107f98e2e9de12ed6187983feea Mon Sep 17 00:00:00 2001 From: Matin Soleimani <43088918+MatinSoleimani@users.noreply.github.com> Date: Wed, 12 Jun 2019 19:41:50 +0430 Subject: [PATCH] Fix a problem about DeezerApiService These changes fix a crash. This crash is for non international language integers like Persian. --- .../code/name/monkey/retromusic/deezer/DeezerApiService.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/deezer/DeezerApiService.kt b/app/src/main/java/code/name/monkey/retromusic/deezer/DeezerApiService.kt index 16a64bae..6378be4b 100644 --- a/app/src/main/java/code/name/monkey/retromusic/deezer/DeezerApiService.kt +++ b/app/src/main/java/code/name/monkey/retromusic/deezer/DeezerApiService.kt @@ -52,12 +52,11 @@ interface DeezerApiService { .addHeader("Cache-Control", String.format( Locale.getDefault(), - "max-age=%d, max-stale=%d", - 31536000, 31536000 + "max-age=31536000, max-stale=31536000" ) ).build() chain.proceed(modifiedRequest) } } } -} \ No newline at end of file +}