Rename methods
This commit is contained in:
parent
2a4818f630
commit
0514a49ba1
3 changed files with 5 additions and 5 deletions
|
@ -211,7 +211,7 @@ public abstract class OsmandPlugin {
|
|||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
protected List<ImageCard> getImageCards(@Nullable GetImageCardsListener listener) {
|
||||
protected List<ImageCard> getContextMenuImageCards(@Nullable GetImageCardsListener listener) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
|
@ -875,9 +875,9 @@ public abstract class OsmandPlugin {
|
|||
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()) {
|
||||
imageCards.addAll(p.getImageCards(listener));
|
||||
imageCards.addAll(p.getContextMenuImageCards(listener));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -431,7 +431,7 @@ public abstract class ImageCard extends AbstractCard {
|
|||
protected List<ImageCard> doInBackground(Void... params) {
|
||||
TrafficStats.setThreadStatsTag(GET_IMAGE_CARD_THREAD_ID);
|
||||
List<ImageCard> result = new ArrayList<>();
|
||||
OsmandPlugin.populateImageCards(result, listener);
|
||||
OsmandPlugin.populateContextMenuImageCards(result, listener);
|
||||
try {
|
||||
final Map<String, String> pms = new LinkedHashMap<>();
|
||||
pms.put("lat", "" + (float) latLon.getLatitude());
|
||||
|
|
|
@ -85,7 +85,7 @@ public class OpenPlaceReviewsPlugin extends OsmandPlugin {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected List<ImageCard> getImageCards(@Nullable GetImageCardsListener listener) {
|
||||
protected List<ImageCard> getContextMenuImageCards(@Nullable GetImageCardsListener listener) {
|
||||
List<ImageCard> imageCards = new ArrayList<>();
|
||||
if (mapActivity != null) {
|
||||
Object object = mapActivity.getMapLayers().getContextMenuLayer().getSelectedObject();
|
||||
|
|
Loading…
Reference in a new issue