Skip to content

Commit

Permalink
upgrade commons.lang library in contacts plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Bananeweizen committed Apr 22, 2014
1 parent 0e12626 commit 7f4478f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file removed cgeo-contacts/libs/commons-lang3-3.1.jar
Binary file not shown.
Binary file added cgeo-contacts/libs/commons-lang3-3.3.2.jar
Binary file not shown.
6 changes: 4 additions & 2 deletions cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
Expand Up @@ -3,6 +3,7 @@
import org.apache.commons.lang3.CharEncoding;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.jdt.annotation.NonNull;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
Expand All @@ -17,6 +18,7 @@
import android.util.Pair;
import android.view.Gravity;
import android.widget.Toast;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.ArrayList;
Expand Down Expand Up @@ -132,13 +134,13 @@ private static String getParameter(final Uri uri, final String paramKey) {
try {
final String param = uri.getQueryParameter(paramKey);
if (param == null) {
return "";
return StringUtils.EMPTY;
}
return URLDecoder.decode(param, CharEncoding.UTF_8).trim();
} catch (UnsupportedEncodingException e) {
Log.e(LOG_TAG, "ContactsActivity.getParameter", e);
}
return "";
return StringUtils.EMPTY;
}

}

0 comments on commit 7f4478f

Please sign in to comment.