diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 14:59:27 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-11 14:59:27 +0100 |
commit | cbef4b8c299e4e14f1453e3dddb516d4e685ad6d (patch) | |
tree | 4e957bd096933eb9f60b32699b7a96b0143032f1 /main/src | |
parent | 4fde6849e36a74b0dfc6f725bee9e642f5c02d9c (diff) | |
download | cgeo-cbef4b8c299e4e14f1453e3dddb516d4e685ad6d.zip cgeo-cbef4b8c299e4e14f1453e3dddb516d4e685ad6d.tar.gz cgeo-cbef4b8c299e4e14f1453e3dddb516d4e685ad6d.tar.bz2 |
refactoring: remove unnecessary constructs
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/cgeo/geocaching/MainActivity.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/enumerations/CacheListType.java | 2 | ||||
-rw-r--r-- | main/src/cgeo/geocaching/files/SimpleDirChooser.java | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/MainActivity.java b/main/src/cgeo/geocaching/MainActivity.java index dfe2f50..cb94183 100644 --- a/main/src/cgeo/geocaching/MainActivity.java +++ b/main/src/cgeo/geocaching/MainActivity.java @@ -106,7 +106,7 @@ public class MainActivity extends AbstractActivity { if (conn.isLoggedIn()) { userInfo.append(conn.getUserName()); if (conn.getCachesFound() >= 0) { - userInfo.append(" (").append(String.valueOf(conn.getCachesFound())).append(')'); + userInfo.append(" (").append(conn.getCachesFound()).append(')'); } userInfo.append(Formatter.SEPARATOR); } diff --git a/main/src/cgeo/geocaching/enumerations/CacheListType.java b/main/src/cgeo/geocaching/enumerations/CacheListType.java index f482d5b..7efd705 100644 --- a/main/src/cgeo/geocaching/enumerations/CacheListType.java +++ b/main/src/cgeo/geocaching/enumerations/CacheListType.java @@ -17,7 +17,7 @@ public enum CacheListType { */ public final boolean canSwitch; - private CacheListType(final boolean canSwitch) { + CacheListType(final boolean canSwitch) { this.canSwitch = canSwitch; } } diff --git a/main/src/cgeo/geocaching/files/SimpleDirChooser.java b/main/src/cgeo/geocaching/files/SimpleDirChooser.java index 3e09cc4..e63c09f 100644 --- a/main/src/cgeo/geocaching/files/SimpleDirChooser.java +++ b/main/src/cgeo/geocaching/files/SimpleDirChooser.java @@ -89,9 +89,9 @@ public class SimpleDirChooser extends AbstractListActivity { } public void editPath() { - AlertDialog.Builder builder = new AlertDialog.Builder(SimpleDirChooser.this); + AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(R.string.simple_dir_chooser_current_path); - final EditText input = new EditText(SimpleDirChooser.this); + final EditText input = new EditText(this); input.setInputType(InputType.TYPE_CLASS_TEXT); input.setText(currentDir.getPath()); builder.setView(input); |