<NME> PocketGeocacheListLoader.java
<BEF> package cgeo.geocaching.loaders;

import cgeo.geocaching.SearchResult;
import cgeo.geocaching.connector.gc.GCParser;
import cgeo.geocaching.settings.Settings;

import android.content.Context;

public class PocketGeocacheListLoader extends AbstractSearchLoader {
    private final String guid;

    public PocketGeocacheListLoader(final Context context, final String guid) {
        super(context);
        this.guid = guid;
    }


    @Override
    public SearchResult runSearch() {

        if (Settings.isGCConnectorActive()) {
            return GCParser.searchByPocketQuery(GCConnector.getInstance(), guid);
        }

        return new SearchResult();

    }

}

<MSG> Merge pull request #5825 from samueltardieu/toast-if-no-connectors

fix #5710: use toast if no connector is active for search
<DFF> @@ -4,13 +4,13 @@ import cgeo.geocaching.SearchResult;
 import cgeo.geocaching.connector.gc.GCParser;
 import cgeo.geocaching.settings.Settings;
 
-import android.content.Context;
+import android.app.Activity;
 
 public class PocketGeocacheListLoader extends AbstractSearchLoader {
     private final String guid;
 
-    public PocketGeocacheListLoader(final Context context, final String guid) {
-        super(context);
+    public PocketGeocacheListLoader(final Activity activity, final String guid) {
+        super(activity);
         this.guid = guid;
     }
 

Merge pull request #5825 from samueltardieu/toast-if-no-connectors