More tweaks to update messages

pull/14/head
Sam Bosley 12 years ago
parent 30ed47ef5b
commit 5c6997b464

@ -296,11 +296,12 @@ public class UpdateMessageService {
try { try {
PackageInfo pi = pm.getPackageInfo(Constants.PACKAGE, PackageManager.GET_META_DATA); PackageInfo pi = pm.getPackageInfo(Constants.PACKAGE, PackageManager.GET_META_DATA);
int versionCode = pi.versionCode; int versionCode = pi.versionCode;
String result = restClient.get(URL + "?version=" + versionCode + "&" + String url = URL + "?version=" + versionCode + "&" +
"language=" + Locale.getDefault().getISO3Language() + "&" + "language=" + Locale.getDefault().getISO3Language() + "&" +
"market=" + Constants.MARKET_STRATEGY.strategyId() + "&" + "market=" + Constants.MARKET_STRATEGY.strategyId() + "&" +
"actfm=" + (actFmPreferenceService.isLoggedIn() ? "1" : "0") + "&" + "actfm=" + (actFmPreferenceService.isLoggedIn() ? "1" : "0") + "&" +
"premium=" + (ActFmPreferenceService.isPremiumUser() ? "1" : "0")); //$NON-NLS-1$ "premium=" + (ActFmPreferenceService.isPremiumUser() ? "1" : "0");
String result = restClient.get(url); //$NON-NLS-1$
if(TextUtils.isEmpty(result)) if(TextUtils.isEmpty(result))
return null; return null;

Loading…
Cancel
Save