Merge pull request #9978 from osmandapp/Travel-fix

We have a few issues with text and icon colors.
This commit is contained in:
Vitaliy 2020-10-08 12:20:59 +03:00 committed by GitHub
commit a585b1aa90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,6 +135,7 @@ public class SearchRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView
}
private LayerDrawable getPlaceholder(boolean history) {
int colorDefault = ContextCompat.getColor(app, R.color.icon_color_default_light);
LayerDrawable res = (LayerDrawable) AppCompatResources.getDrawable(
app, history
? R.drawable.wikivoyage_search_history_placeholder
@ -145,6 +146,8 @@ public class SearchRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView
history ? R.drawable.ic_action_history : R.drawable.ic_action_placeholder_city,
R.color.icon_color_default_light
));
} else {
res.setTint(colorDefault);
}
return res;
}