From a1a35b78ef3aac2ba8ae3265fab39ffc3f6c44de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Thu, 3 Nov 2016 22:01:58 +0100 Subject: [PATCH] Replaced wiki browser run. --- .../callbacks/wiki/FetchWikiLocationsCallback.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/wiki/FetchWikiLocationsCallback.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/wiki/FetchWikiLocationsCallback.java index b96fbed..2075b85 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/wiki/FetchWikiLocationsCallback.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/wiki/FetchWikiLocationsCallback.java @@ -4,6 +4,7 @@ import android.support.v4.app.FragmentActivity; import android.view.View; import android.widget.AdapterView; import pl.tpolgrabia.urbanexplorer.AppConstants; +import pl.tpolgrabia.urbanexplorer.worker.WikiBrowserWorker; import pl.tpolgrabia.wikibinding.dto.app.WikiAppObject; import pl.tpolgrabia.urbanexplorer.fragments.WikiLocationsFragment; import pl.tpolgrabia.wikibinding.utils.WikiUtils; @@ -26,10 +27,8 @@ public class FetchWikiLocationsCallback implements AdapterView.OnItemLongClickLi @Override public boolean onItemLongClick(AdapterView parent, View view, final int position, long id) { final WikiAppObject item = wikiLocationsFragment.getAppObjects().get(position); - wikiUtils.fetchSingleWikiInfoItemAndRunWikiPage( - wikiLocationsFragment.getActivity(), - item.getPageId(), - new WikiInfoRunBrowserCallback(wikiLocationsFragment, item)); + WikiBrowserWorker worker = new WikiBrowserWorker(wikiLocationsFragment.getActivity(), "en"); + worker.execute(item); return false; } }