Skip to content

Commit

Permalink
Fix user-agent generation for Arabic locales
Browse files Browse the repository at this point in the history
  • Loading branch information
solkin committed Dec 17, 2023
1 parent 3a321fb commit 014862a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class UserAgentProviderImpl(

override fun getUserAgent(): String {
val info = packageManager.getPackageInfo(context.packageName, 0)
return String.format("Appteka/%s.%d (%s; %s; sdk:%d; %s; %s-%s)", info.versionName, info.versionCodeCompat(), Build.MANUFACTURER, Build.MODEL, Build.VERSION.SDK_INT, info.packageName, locale.language, locale.country)
return String.format(Locale.ENGLISH, "Appteka/%s.%d (%s; %s; sdk:%d; %s; %s-%s)", info.versionName, info.versionCodeCompat(), Build.MANUFACTURER, Build.MODEL, Build.VERSION.SDK_INT, info.packageName, locale.language, locale.country)
}

}

0 comments on commit 014862a

Please sign in to comment.