diff options
-rw-r--r-- | AndroidManifest.xml | 2 | ||||
-rw-r--r-- | src/org/connectbot/util/UpdateHelper.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 646b4aa..11933a0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -2,7 +2,7 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.connectbot" android:versionName="1.6-dev" - android:versionCode="172"> + android:versionCode="173"> <application android:icon="@drawable/icon" diff --git a/src/org/connectbot/util/UpdateHelper.java b/src/org/connectbot/util/UpdateHelper.java index 4e134a3..bb7f59a 100644 --- a/src/org/connectbot/util/UpdateHelper.java +++ b/src/org/connectbot/util/UpdateHelper.java @@ -22,6 +22,7 @@ import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; +import java.util.Locale; import org.connectbot.R; import org.json.JSONObject; @@ -120,7 +121,9 @@ public final class UpdateHelper implements Runnable { } // place version information in user-agent string to be used later - this.userAgent = String.format("%s/%s (%d, freq=%s)", packageName, versionName, versionCode, frequency); + userAgent = String.format("%s/%s (%d, freq=%s, lang=%s)", + packageName, versionName, versionCode, frequency, + Locale.getDefault().getLanguage()); if(shouldCheck) { // spawn thread to check for update |