[android] modified PlacePageView to fix hotel subtitles color (#1547)

* modified PlacePageView setspan to fix hotel subtitles color

Signed-off-by: Thibaud Besnard <thibaudk@posteo.net>

* corrected my fix after test on debug apk

Signed-off-by: Thibaud Besnard <thibaudk@posteo.net>

* typo

Signed-off-by: Thibaud Besnard <thibaudk@posteo.net>

* typo again

Signed-off-by: Thibaud Besnard <thibaudk@posteo.net>
This commit is contained in:
Kazing 2021-11-14 10:48:00 +01:00 committed by GitHub
parent 941e574896
commit d50e7a75b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -826,10 +826,11 @@ public class PlacePageView extends NestedScrollViewClickFixed
{
SpannableStringBuilder sb = new SpannableStringBuilder(text);
int start = text.indexOf("");
int end = text.lastIndexOf("") + 1;
if (start > -1)
{
sb.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.base_yellow)),
start, sb.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
start, end, Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
}
mTvSubtitle.setText(sb);