diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-03-27 22:11:32 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-03-27 22:11:32 +0100 |
| commit | ebc29f6c09c0f1b53cf8422380818d65ae9bbbbf (patch) | |
| tree | 49841afba074d741d6a7143d6ed32ce1c6c14691 | |
| parent | e0a480e2372f79220c2339d299a5da971078e6fc (diff) | |
| parent | 4d92b7e18c42f539d641807f4304f41a5efa8ac0 (diff) | |
| download | cgeo-ebc29f6c09c0f1b53cf8422380818d65ae9bbbbf.zip cgeo-ebc29f6c09c0f1b53cf8422380818d65ae9bbbbf.tar.gz cgeo-ebc29f6c09c0f1b53cf8422380818d65ae9bbbbf.tar.bz2 | |
Merge branch 'release' into upstream
| -rw-r--r-- | main/src/cgeo/geocaching/cgeocaches.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java index d29b924..df09936 100644 --- a/main/src/cgeo/geocaching/cgeocaches.java +++ b/main/src/cgeo/geocaching/cgeocaches.java @@ -439,23 +439,23 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity } } + setTitle(title); + setAdapter(); + + prepareFilterBar(); + currentLoader = (AbstractSearchLoader) getSupportLoaderManager().initLoader(type.ordinal(), extras, this); // init if (CollectionUtils.isNotEmpty(cacheList)) { - if (currentLoader.isStarted()) { + // currentLoader can be null if this activity is created from a map, as onCreateLoader() will return null. + if (currentLoader != null && currentLoader.isStarted()) { showFooterLoadingCaches(); - } - else { + } else { showFooterMoreCaches(); } } - setTitle(title); - setAdapter(); - - prepareFilterBar(); - if (isInvokedFromAttachment()) { importGpxAttachement(); } |
