Replaced wiki browser run.
parent
2b739c4fdb
commit
a1a35b78ef
|
@ -4,6 +4,7 @@ import android.support.v4.app.FragmentActivity;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import pl.tpolgrabia.urbanexplorer.AppConstants;
|
import pl.tpolgrabia.urbanexplorer.AppConstants;
|
||||||
|
import pl.tpolgrabia.urbanexplorer.worker.WikiBrowserWorker;
|
||||||
import pl.tpolgrabia.wikibinding.dto.app.WikiAppObject;
|
import pl.tpolgrabia.wikibinding.dto.app.WikiAppObject;
|
||||||
import pl.tpolgrabia.urbanexplorer.fragments.WikiLocationsFragment;
|
import pl.tpolgrabia.urbanexplorer.fragments.WikiLocationsFragment;
|
||||||
import pl.tpolgrabia.wikibinding.utils.WikiUtils;
|
import pl.tpolgrabia.wikibinding.utils.WikiUtils;
|
||||||
|
@ -26,10 +27,8 @@ public class FetchWikiLocationsCallback implements AdapterView.OnItemLongClickLi
|
||||||
@Override
|
@Override
|
||||||
public boolean onItemLongClick(AdapterView<?> parent, View view, final int position, long id) {
|
public boolean onItemLongClick(AdapterView<?> parent, View view, final int position, long id) {
|
||||||
final WikiAppObject item = wikiLocationsFragment.getAppObjects().get(position);
|
final WikiAppObject item = wikiLocationsFragment.getAppObjects().get(position);
|
||||||
wikiUtils.fetchSingleWikiInfoItemAndRunWikiPage(
|
WikiBrowserWorker worker = new WikiBrowserWorker(wikiLocationsFragment.getActivity(), "en");
|
||||||
wikiLocationsFragment.getActivity(),
|
worker.execute(item);
|
||||||
item.getPageId(),
|
|
||||||
new WikiInfoRunBrowserCallback(wikiLocationsFragment, item));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue