Rename methods

This commit is contained in:
Vitaliy 2021-02-03 16:47:31 +02:00
parent 2a4818f630
commit 0514a49ba1
3 changed files with 5 additions and 5 deletions

View file

@ -211,7 +211,7 @@ public abstract class OsmandPlugin {
return Collections.emptyList(); return Collections.emptyList();
} }
protected List<ImageCard> getImageCards(@Nullable GetImageCardsListener listener) { protected List<ImageCard> getContextMenuImageCards(@Nullable GetImageCardsListener listener) {
return Collections.emptyList(); return Collections.emptyList();
} }
@ -875,9 +875,9 @@ public abstract class OsmandPlugin {
return collection; return collection;
} }
public static void populateImageCards(@NonNull List<ImageCard> imageCards, @Nullable GetImageCardsListener listener) { public static void populateContextMenuImageCards(@NonNull List<ImageCard> imageCards, @Nullable GetImageCardsListener listener) {
for (OsmandPlugin p : getEnabledPlugins()) { for (OsmandPlugin p : getEnabledPlugins()) {
imageCards.addAll(p.getImageCards(listener)); imageCards.addAll(p.getContextMenuImageCards(listener));
} }
} }

View file

@ -431,7 +431,7 @@ public abstract class ImageCard extends AbstractCard {
protected List<ImageCard> doInBackground(Void... params) { protected List<ImageCard> doInBackground(Void... params) {
TrafficStats.setThreadStatsTag(GET_IMAGE_CARD_THREAD_ID); TrafficStats.setThreadStatsTag(GET_IMAGE_CARD_THREAD_ID);
List<ImageCard> result = new ArrayList<>(); List<ImageCard> result = new ArrayList<>();
OsmandPlugin.populateImageCards(result, listener); OsmandPlugin.populateContextMenuImageCards(result, listener);
try { try {
final Map<String, String> pms = new LinkedHashMap<>(); final Map<String, String> pms = new LinkedHashMap<>();
pms.put("lat", "" + (float) latLon.getLatitude()); pms.put("lat", "" + (float) latLon.getLatitude());

View file

@ -85,7 +85,7 @@ public class OpenPlaceReviewsPlugin extends OsmandPlugin {
} }
@Override @Override
protected List<ImageCard> getImageCards(@Nullable GetImageCardsListener listener) { protected List<ImageCard> getContextMenuImageCards(@Nullable GetImageCardsListener listener) {
List<ImageCard> imageCards = new ArrayList<>(); List<ImageCard> imageCards = new ArrayList<>();
if (mapActivity != null) { if (mapActivity != null) {
Object object = mapActivity.getMapLayers().getContextMenuLayer().getSelectedObject(); Object object = mapActivity.getMapLayers().getContextMenuLayer().getSelectedObject();