Fix build
This commit is contained in:
parent
17dbe998d6
commit
b9f1f69934
1 changed files with 10 additions and 8 deletions
|
@ -15,6 +15,10 @@ import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
import androidx.appcompat.view.ContextThemeWrapper;
|
||||||
|
import androidx.core.content.ContextCompat;
|
||||||
|
|
||||||
import net.osmand.AndroidUtils;
|
import net.osmand.AndroidUtils;
|
||||||
import net.osmand.PlatformUtil;
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.data.Amenity;
|
import net.osmand.data.Amenity;
|
||||||
|
@ -63,10 +67,6 @@ import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
|
||||||
import androidx.appcompat.view.ContextThemeWrapper;
|
|
||||||
import androidx.core.content.ContextCompat;
|
|
||||||
|
|
||||||
public class AmenityMenuBuilder extends MenuBuilder {
|
public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
|
|
||||||
private static final String WIKI_LINK = ".wikipedia.org/w";
|
private static final String WIKI_LINK = ".wikipedia.org/w";
|
||||||
|
@ -93,7 +93,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
protected void buildNearestPoiRow(View view) {
|
protected void buildNearestPoiRow(View view) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buildRow(View view, int iconId, String text, String textPrefix,
|
private void buildRow(View view, int iconId, String text, String textPrefix, String socialMediaUrl,
|
||||||
boolean collapsable, final CollapsableView collapsableView,
|
boolean collapsable, final CollapsableView collapsableView,
|
||||||
int textColor, boolean isWiki, boolean isText, boolean needLinks,
|
int textColor, boolean isWiki, boolean isText, boolean needLinks,
|
||||||
boolean isPhoneNumber, boolean isUrl, boolean matchWidthDivider, int textLinesLimit) {
|
boolean isPhoneNumber, boolean isUrl, boolean matchWidthDivider, int textLinesLimit) {
|
||||||
|
@ -684,7 +684,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
|
|
||||||
if (processNearestWiki() && nearestWiki.size() > 0) {
|
if (processNearestWiki() && nearestWiki.size() > 0) {
|
||||||
AmenityInfoRow wikiInfo = new AmenityInfoRow(
|
AmenityInfoRow wikiInfo = new AmenityInfoRow(
|
||||||
"nearest_wiki", R.drawable.ic_plugin_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() + ")",
|
||||||
|
null, true,
|
||||||
getCollapsableView(view.getContext(), true, nearestWiki),
|
getCollapsableView(view.getContext(), true, nearestWiki),
|
||||||
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);
|
||||||
|
@ -692,7 +693,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
||||||
|
|
||||||
if (processNearestPoi() && nearestPoi.size() > 0) {
|
if (processNearestPoi() && nearestPoi.size() > 0) {
|
||||||
AmenityInfoRow poiInfo = new AmenityInfoRow(
|
AmenityInfoRow poiInfo = new AmenityInfoRow(
|
||||||
"nearest_poi", AmenityMenuController.getRightIconId(amenity), null, app.getString(R.string.speak_poi) + " (" + nearestPoi.size() + ")", true,
|
"nearest_poi", AmenityMenuController.getRightIconId(amenity), null, app.getString(R.string.speak_poi) + " (" + nearestPoi.size() + ")",
|
||||||
|
null, true,
|
||||||
getCollapsableView(view.getContext(), true, nearestPoi),
|
getCollapsableView(view.getContext(), true, nearestPoi),
|
||||||
0, false, false, false, 1000, null, false, false, false, 0);
|
0, false, false, false, 1000, null, false, false, false, 0);
|
||||||
buildAmenityRow(view, poiInfo);
|
buildAmenityRow(view, poiInfo);
|
||||||
|
|
Loading…
Reference in a new issue