Fix icons for context menu additional info
This commit is contained in:
parent
c7d77a1373
commit
821511d7e3
1 changed files with 6 additions and 5 deletions
|
@ -11,7 +11,6 @@ import android.support.annotation.NonNull;
|
||||||
import android.support.v4.content.ContextCompat;
|
import android.support.v4.content.ContextCompat;
|
||||||
import android.support.v7.app.AlertDialog;
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.support.v7.view.ContextThemeWrapper;
|
import android.support.v7.view.ContextThemeWrapper;
|
||||||
import android.text.Html;
|
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.util.Linkify;
|
import android.text.util.Linkify;
|
||||||
import android.view.Gravity;
|
import android.view.Gravity;
|
||||||
|
@ -35,13 +34,13 @@ import net.osmand.plus.Version;
|
||||||
import net.osmand.plus.activities.MapActivity;
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.plus.helpers.FontCache;
|
import net.osmand.plus.helpers.FontCache;
|
||||||
import net.osmand.plus.mapcontextmenu.MenuBuilder;
|
import net.osmand.plus.mapcontextmenu.MenuBuilder;
|
||||||
import net.osmand.plus.wikipedia.WikiArticleHelper;
|
|
||||||
import net.osmand.plus.wikipedia.WikipediaArticleWikiLinkFragment;
|
|
||||||
import net.osmand.plus.wikipedia.WikipediaDialogFragment;
|
|
||||||
import net.osmand.plus.osmedit.OsmEditingPlugin;
|
import net.osmand.plus.osmedit.OsmEditingPlugin;
|
||||||
import net.osmand.plus.poi.PoiUIFilter;
|
import net.osmand.plus.poi.PoiUIFilter;
|
||||||
import net.osmand.plus.views.POIMapLayer;
|
import net.osmand.plus.views.POIMapLayer;
|
||||||
import net.osmand.plus.widgets.TextViewEx;
|
import net.osmand.plus.widgets.TextViewEx;
|
||||||
|
import net.osmand.plus.wikipedia.WikiArticleHelper;
|
||||||
|
import net.osmand.plus.wikipedia.WikipediaArticleWikiLinkFragment;
|
||||||
|
import net.osmand.plus.wikipedia.WikipediaDialogFragment;
|
||||||
import net.osmand.util.Algorithms;
|
import net.osmand.util.Algorithms;
|
||||||
import net.osmand.util.OpeningHoursParser;
|
import net.osmand.util.OpeningHoursParser;
|
||||||
|
|
||||||
|
@ -474,6 +473,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
iconId = R.drawable.ic_action_poi_name;
|
iconId = R.drawable.ic_action_poi_name;
|
||||||
} else if (key.equals("operator") || key.equals("brand")) {
|
} else if (key.equals("operator") || key.equals("brand")) {
|
||||||
iconId = R.drawable.ic_action_poi_brand;
|
iconId = R.drawable.ic_action_poi_brand;
|
||||||
|
} else if (key.equals("internet_access_fee_yes")) {
|
||||||
|
iconId = R.drawable.ic_action_internet_access_fee;
|
||||||
} else {
|
} else {
|
||||||
iconId = R.drawable.ic_action_info_dark;
|
iconId = R.drawable.ic_action_info_dark;
|
||||||
}
|
}
|
||||||
|
@ -610,7 +611,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
|
|
||||||
if (processNearstWiki() && nearestWiki.size() > 0) {
|
if (processNearstWiki() && nearestWiki.size() > 0) {
|
||||||
AmenityInfoRow wikiInfo = new AmenityInfoRow(
|
AmenityInfoRow wikiInfo = new AmenityInfoRow(
|
||||||
"nearest_wiki", R.drawable.ic_action_wikipedia, null, app.getString(R.string.wiki_around) + " (" + nearestWiki.size() + ")", true,
|
"nearest_wiki", R.drawable.ic_plugin_wikipedia, null, app.getString(R.string.wiki_around) + " (" + nearestWiki.size() + ")", true,
|
||||||
getCollapsableWikiView(view.getContext(), true),
|
getCollapsableWikiView(view.getContext(), true),
|
||||||
0, false, false, false, 1000, null, false, false, false, 0);
|
0, false, false, false, 1000, null, false, false, false, 0);
|
||||||
buildAmenityRow(view, wikiInfo);
|
buildAmenityRow(view, wikiInfo);
|
||||||
|
|
Loading…
Reference in a new issue