Fix color of close button on normal reminders.

This change also prevents the title from overlapping with the close
button.
fork-5.53.8
Rashad Sookram 2021-12-08 13:31:34 -05:00 zatwierdzone przez Cody Henthorne
rodzic 6c608e955e
commit c16115f71a
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -117,6 +117,10 @@ public final class ReminderView extends FrameLayout {
}
});
if (reminder.getImportance() == Reminder.Importance.NORMAL) {
closeButton.setColorFilter(ContextCompat.getColor(getContext(), R.color.signal_text_primary));
}
int progress = reminder.getProgress();
if (progress != -1) {
progressBar.setProgress(progress);

Wyświetl plik

@ -48,7 +48,7 @@
<TextView
android:id="@+id/reminder_title"
android:layout_width="wrap_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="20dp"
@ -57,6 +57,7 @@
android:textSize="20sp"
android:fontFamily="sans-serif-medium"
app:layout_constraintBottom_toTopOf="@id/reminder_text"
app:layout_constraintEnd_toStartOf="@id/cancel"
app:layout_constraintStart_toEndOf="@id/reminder_progress"
app:layout_constraintTop_toTopOf="parent"
app:layout_goneMarginStart="16dp"