change api level check for WebP image in FavouritesTreeFragment

This commit is contained in:
Chumva 2018-03-28 17:25:27 +03:00
parent 37dd9dd772
commit 2a507d01f3

View file

@ -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);