change api level check for WebP image in FavouritesTreeFragment
This commit is contained in:
parent
37dd9dd772
commit
2a507d01f3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue