From 2a507d01f3c3d598bfe954c16311bff29bd42186 Mon Sep 17 00:00:00 2001 From: Chumva Date: Wed, 28 Mar 2018 17:25:27 +0300 Subject: [PATCH] change api level check for WebP image in FavouritesTreeFragment --- .../src/net/osmand/plus/activities/FavoritesTreeFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java index 2cdb92c7fc..c676a8545e 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavoritesTreeFragment.java @@ -163,7 +163,7 @@ public class FavoritesTreeFragment extends OsmandExpandableListFragment { } View emptyView = view.findViewById(android.R.id.empty); ImageView emptyImageView = (ImageView) emptyView.findViewById(R.id.empty_state_image_view); - if (Build.VERSION.SDK_INT >= 28) { + if (Build.VERSION.SDK_INT >= 18) { emptyImageView.setImageResource(app.getSettings().isLightContent() ? R.drawable.ic_empty_state_favorites_day : R.drawable.ic_empty_state_favorites_night); } else { emptyImageView.setVisibility(View.GONE);