forked from upstream-mirrors/OpenTracks
Activity icon now properly tint'ed in detail activity.
This commit is contained in:
@@ -135,7 +135,6 @@ public class StatisticsRecordedFragment extends Fragment {
|
|||||||
// Set activity type
|
// Set activity type
|
||||||
{
|
{
|
||||||
String trackIconValue = TrackIconUtils.getIconValue(getContext(), category);
|
String trackIconValue = TrackIconUtils.getIconValue(getContext(), category);
|
||||||
viewBinding.statsActivityTypeIcon.setEnabled(false);
|
|
||||||
viewBinding.statsActivityTypeIcon.setImageDrawable(ContextCompat.getDrawable(getContext(), TrackIconUtils.getIconDrawable(trackIconValue)));
|
viewBinding.statsActivityTypeIcon.setImageDrawable(ContextCompat.getDrawable(getContext(), TrackIconUtils.getIconDrawable(trackIconValue)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,7 @@
|
|||||||
app:layout_constraintEnd_toStartOf="@+id/guideline3"
|
app:layout_constraintEnd_toStartOf="@+id/guideline3"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/stats_distance_value"
|
app:layout_constraintBottom_toBottomOf="@+id/stats_distance_value"
|
||||||
app:layout_constraintTop_toTopOf="@+id/stats_distance_value"
|
app:layout_constraintTop_toTopOf="@+id/stats_distance_value"
|
||||||
app:tint="?android:attr/textColorPrimary"
|
app:tint="?android:textColorPrimary" />
|
||||||
app:tintMode="src_atop" />
|
|
||||||
|
|
||||||
<!-- Total time -->
|
<!-- Total time -->
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
@@ -76,7 +76,8 @@
|
|||||||
app:layout_constraintStart_toEndOf="@+id/guideline2"
|
app:layout_constraintStart_toEndOf="@+id/guideline2"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/guideline3"
|
app:layout_constraintEnd_toStartOf="@+id/guideline3"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/stats_distance_value"
|
app:layout_constraintBottom_toBottomOf="@+id/stats_distance_value"
|
||||||
app:layout_constraintTop_toTopOf="@+id/stats_distance_value" />
|
app:layout_constraintTop_toTopOf="@+id/stats_distance_value"
|
||||||
|
app:tint="?android:textColorPrimary" />
|
||||||
|
|
||||||
<!-- Total time -->
|
<!-- Total time -->
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
Reference in New Issue
Block a user