diff options
author | 2013-04-25 17:16:03 +0900 | |
---|---|---|
committer | 2013-04-25 18:52:39 +0900 | |
commit | 43590149a5c2073a9fc8e3ed6afbf21fb017193e (patch) | |
tree | 25b064ac21c12863a79dc05fc1f1834d0a271b56 /java/src/com/android/inputmethod/latin | |
parent | 4dc77dcf4c1f704c2f6b32222a74d673afec8794 (diff) | |
download | latinime-43590149a5c2073a9fc8e3ed6afbf21fb017193e.tar.gz latinime-43590149a5c2073a9fc8e3ed6afbf21fb017193e.tar.xz latinime-43590149a5c2073a9fc8e3ed6afbf21fb017193e.zip |
Work around a bug in older DownloadManager versions.
This adds a number to the extension.
Note that for DownloadManager to keep this, the server
needs to send it a mime type it does not recognize. Right
now, it does not recognize application/json so it's okay,
but we'd do well to remove the content/type header from
the server to prevent problems.
Bug: 8467516
Change-Id: Ic484f66ac3f67c36f59f2c0bcb8c7fdeb6e8590d
Diffstat (limited to 'java/src/com/android/inputmethod/latin')
-rw-r--r-- | java/src/com/android/inputmethod/latin/DebugSettings.java | 2 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/Utils.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/DebugSettings.java b/java/src/com/android/inputmethod/latin/DebugSettings.java index 9d4794121..5969a63de 100644 --- a/java/src/com/android/inputmethod/latin/DebugSettings.java +++ b/java/src/com/android/inputmethod/latin/DebugSettings.java @@ -122,7 +122,7 @@ public final class DebugSettings extends PreferenceFragment } boolean isDebugMode = mDebugMode.isChecked(); final String version = getResources().getString( - R.string.version_text, Utils.getSdkVersion(getActivity())); + R.string.version_text, Utils.getVersionName(getActivity())); if (!isDebugMode) { mDebugMode.setTitle(version); mDebugMode.setSummary(""); diff --git a/java/src/com/android/inputmethod/latin/Utils.java b/java/src/com/android/inputmethod/latin/Utils.java index fc32bd45e..0f96c54dc 100644 --- a/java/src/com/android/inputmethod/latin/Utils.java +++ b/java/src/com/android/inputmethod/latin/Utils.java @@ -475,7 +475,7 @@ public final class Utils { return 0; } - public static String getSdkVersion(Context context) { + public static String getVersionName(Context context) { try { if (context == null) { return ""; |