diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-01-27 00:58:41 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-01-27 01:02:55 +0100 |
| commit | bc070172281b36407d05ed5cbdc4fbcba2d6b529 (patch) | |
| tree | 24c4752e4f23fc1833aee572f864a02a29788efb | |
| parent | 2243f21efc8c090a1cfe1ad474e1108cc64d080a (diff) | |
| download | cgeo-bc070172281b36407d05ed5cbdc4fbcba2d6b529.zip cgeo-bc070172281b36407d05ed5cbdc4fbcba2d6b529.tar.gz cgeo-bc070172281b36407d05ed5cbdc4fbcba2d6b529.tar.bz2 | |
Do not repeat the work done in superclass in overriden method
| -rw-r--r-- | main/src/cgeo/geocaching/cgeogpxes.java | 16 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/files/FileList.java | 2 |
2 files changed, 1 insertions, 17 deletions
diff --git a/main/src/cgeo/geocaching/cgeogpxes.java b/main/src/cgeo/geocaching/cgeogpxes.java index 4f38734..d512618 100644 --- a/main/src/cgeo/geocaching/cgeogpxes.java +++ b/main/src/cgeo/geocaching/cgeogpxes.java @@ -10,7 +10,6 @@ import org.apache.commons.lang3.StringUtils; import android.app.Activity;
import android.content.Intent;
-import android.os.Bundle;
import java.io.File;
import java.util.Collections;
@@ -22,8 +21,6 @@ public class cgeogpxes extends FileList<GPXListAdapter> { super(new String[] { "gpx", "loc", "zip" });
}
- private int listId = StoredList.STANDARD_LIST_ID;
-
@Override
protected GPXListAdapter getAdapter(List<File> files) {
return new GPXListAdapter(this, files);
@@ -35,19 +32,6 @@ public class cgeogpxes extends FileList<GPXListAdapter> { }
@Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- final Bundle extras = getIntent().getExtras();
- if (extras != null) {
- listId = extras.getInt(Intents.EXTRA_LIST_ID);
- }
- if (listId <= StoredList.TEMPORARY_LIST_ID) {
- listId = StoredList.STANDARD_LIST_ID;
- }
- }
-
- @Override
protected void setTitle() {
setTitle(res.getString(R.string.gpx_import_title));
}
diff --git a/main/src/cgeo/geocaching/files/FileList.java b/main/src/cgeo/geocaching/files/FileList.java index 4bd2608..31daeb4 100644 --- a/main/src/cgeo/geocaching/files/FileList.java +++ b/main/src/cgeo/geocaching/files/FileList.java @@ -35,7 +35,7 @@ public abstract class FileList<T extends ArrayAdapter<File>> extends AbstractLis private T adapter = null; private ProgressDialog waitDialog = null; private SearchFilesThread searchingThread = null; - private int listId = StoredList.STANDARD_LIST_ID; + protected int listId = StoredList.STANDARD_LIST_ID; private String[] extensions; final private Handler changeWaitDialogHandler = new Handler() { |
