Move WikivoyageArticleContentsFragment from package data to package wikivoyage
This commit is contained in:
parent
eb13434471
commit
e09d9ec8e4
3 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
package net.osmand.plus.wikivoyage.data;
|
||||
package net.osmand.plus.wikivoyage;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
@ -21,6 +21,7 @@ import net.osmand.plus.base.MenuBottomSheetDialogFragment;
|
|||
import net.osmand.plus.base.bottomsheetmenu.BaseBottomSheetItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.SimpleBottomSheetItem;
|
||||
import net.osmand.plus.base.bottomsheetmenu.simpleitems.TitleItem;
|
||||
import net.osmand.plus.wikivoyage.data.ContentsJsonParser;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
|
@ -45,7 +46,7 @@ public class WikivoyageArticleContentsFragment extends MenuBottomSheetDialogFrag
|
|||
} else {
|
||||
return;
|
||||
}
|
||||
ContentsJsonParser.ContentsContainer contentsContainer = ContentsJsonParser.parseJsonContents(contentsJson, getContext());
|
||||
ContentsJsonParser.ContentsContainer contentsContainer = ContentsJsonParser.parseJsonContents(contentsJson);
|
||||
if (contentsContainer == null) {
|
||||
return;
|
||||
}
|
|
@ -24,7 +24,6 @@ import net.osmand.AndroidUtils;
|
|||
import net.osmand.IndexConstants;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.wikivoyage.data.WikivoyageArticle;
|
||||
import net.osmand.plus.wikivoyage.data.WikivoyageArticleContentsFragment;
|
||||
import net.osmand.plus.wikivoyage.data.WikivoyageLocalDataHelper;
|
||||
import net.osmand.util.Algorithms;
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ import java.util.ArrayList;
|
|||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
|
||||
class ContentsJsonParser {
|
||||
public class ContentsJsonParser {
|
||||
|
||||
@Nullable
|
||||
static ContentsContainer parseJsonContents(String contentsJson) {
|
||||
public static ContentsContainer parseJsonContents(String contentsJson) {
|
||||
LinkedHashMap<String, String> map = new LinkedHashMap<>();
|
||||
ArrayList<String> listDataHeader = new ArrayList<>();
|
||||
LinkedHashMap<String, List<String>> listDataChild = new LinkedHashMap<>();
|
||||
|
@ -54,7 +54,7 @@ class ContentsJsonParser {
|
|||
return new ContentsContainer(map, listDataHeader, listDataChild);
|
||||
}
|
||||
|
||||
static class ContentsContainer {
|
||||
public static class ContentsContainer {
|
||||
|
||||
public LinkedHashMap<String, String> map;
|
||||
public ArrayList<String> listDataHeader;
|
||||
|
|
Loading…
Reference in a new issue