diff --git a/OsmAnd/res/drawable/travel_card_download_icon.xml b/OsmAnd/res/drawable/travel_card_download_icon.xml index c50a41b2c6..b0c24733ff 100644 --- a/OsmAnd/res/drawable/travel_card_download_icon.xml +++ b/OsmAnd/res/drawable/travel_card_download_icon.xml @@ -10,5 +10,8 @@ + android:top="4dp" + android:bottom="4dp" + android:left="4dp" + android:right="4dp" /> diff --git a/OsmAnd/res/drawable/travel_card_update_icon.xml b/OsmAnd/res/drawable/travel_card_update_icon.xml index 9648d8b88f..19ce5f2ed2 100644 --- a/OsmAnd/res/drawable/travel_card_update_icon.xml +++ b/OsmAnd/res/drawable/travel_card_update_icon.xml @@ -10,5 +10,8 @@ + android:top="4dp" + android:bottom="4dp" + android:left="4dp" + android:right="4dp" /> diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java index eedfddad0d..49984b1604 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java @@ -68,7 +68,7 @@ public class TravelDownloadUpdateCard extends BaseTravelCard { DownloadUpdateVH holder = (DownloadUpdateVH) viewHolder; this.ref = new WeakReference(holder); holder.title.setText(getTitle(loading)); - holder.icon.setImageDrawable(getIcon()); + holder.icon.setImageResource(getIcon()); holder.description.setText(getDescription()); if (indexItem == null) { holder.fileDataContainer.setVisibility(View.GONE); @@ -117,9 +117,8 @@ public class TravelDownloadUpdateCard extends BaseTravelCard { return app.getString(download ? R.string.download_file : R.string.update_is_available); } - private Drawable getIcon() { - int id = download ? R.drawable.travel_card_download_icon : R.drawable.travel_card_update_icon; - return AppCompatResources.getDrawable(app, id); + private int getIcon() { + return download ? R.drawable.travel_card_download_icon : R.drawable.travel_card_update_icon; } @NonNull