Fix map bubble text color in dark mode.

This commit is contained in:
Andreas Schildbach 2021-01-29 19:17:47 +01:00
parent 97f2aa3809
commit 37a398ecb8
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxWidth="196dp" android:maxWidth="196dp"
android:textColor="@color/fg_significant" android:textColor="@color/fg_significant_on_light"
android:textStyle="bold" /> android:textStyle="bold" />
<de.schildbach.oeffi.stations.LineView <de.schildbach.oeffi.stations.LineView

View file

@ -354,6 +354,7 @@ public class OeffiMapView extends MapView {
bubble.setText(selectedStation.location.name); bubble.setText(selectedStation.location.name);
bubble.setTypeface(Typeface.DEFAULT_BOLD); bubble.setTypeface(Typeface.DEFAULT_BOLD);
bubble.setTextSize(TypedValue.COMPLEX_UNIT_PX, stationFontSize); bubble.setTextSize(TypedValue.COMPLEX_UNIT_PX, stationFontSize);
bubble.setTextColor(res.getColor(R.color.fg_significant_on_light));
bubble.setIncludeFontPadding(false); bubble.setIncludeFontPadding(false);
bubble.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), bubble.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED)); MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));