diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-22 21:51:09 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-26 08:55:08 +0200 |
commit | 8c1c51950a9c7f9bf078fe9dfcc38cd042347bbf (patch) | |
tree | cf5eb4c177722dc6713eb2dc3e07f30924b052b7 /main/src/cgeo/geocaching/cgeoinit.java | |
parent | da11c8565da9b9e939b0e93f7e09e0b7b4fdfcdc (diff) | |
download | cgeo-8c1c51950a9c7f9bf078fe9dfcc38cd042347bbf.zip cgeo-8c1c51950a9c7f9bf078fe9dfcc38cd042347bbf.tar.gz cgeo-8c1c51950a9c7f9bf078fe9dfcc38cd042347bbf.tar.bz2 |
Use android.net.Uri instead of java.net.URI
android.net.Uri is supposed to be faster than the Java counterpart,
at the expense of less checking. Since we build our URI from safe
strings, we take little risks in using those fast variants.
Diffstat (limited to 'main/src/cgeo/geocaching/cgeoinit.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeoinit.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeoinit.java b/main/src/cgeo/geocaching/cgeoinit.java index cbce65a..3f32cef 100644 --- a/main/src/cgeo/geocaching/cgeoinit.java +++ b/main/src/cgeo/geocaching/cgeoinit.java @@ -31,13 +31,12 @@ import android.widget.Spinner; import android.widget.TextView; import java.io.File; -import java.net.URI; public class cgeoinit extends AbstractActivity { private final int SELECT_MAPFILE_REQUEST = 1; - private static final URI URI_SEND2CGEO_AUTH = cgBase.buildURI(false, "send2.cgeo.org", "/auth.html"); + private static final Uri URI_SEND2CGEO_AUTH = cgBase.buildURI(false, "send2.cgeo.org", "/auth.html"); private ProgressDialog loginDialog = null; private ProgressDialog webDialog = null; |