Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25f24a79 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fixed recycling issues in new call log."

parents 4af5bf57 c863f711
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -105,6 +105,9 @@ final class NewCallLogViewHolder extends RecyclerView.ViewHolder {
      primaryTextView.setTextAppearance(R.style.primary_textview_new_call);
      // TODO(zachh): Styling for call type icons when the call is new.
      secondaryTextView.setTextAppearance(R.style.secondary_textview_new_call);
    } else {
      primaryTextView.setTextAppearance(R.style.primary_textview);
      secondaryTextView.setTextAppearance(R.style.secondary_textview);
    }

    setNumberCalls(row);
@@ -158,6 +161,7 @@ final class NewCallLogViewHolder extends RecyclerView.ViewHolder {

  private void setSecondaryCallTypes(CoalescedRow row) {
    // Only call type icon is shown before the secondary text.
    secondaryCallTypeIconsView.clear();
    secondaryCallTypeIconsView.add(row.callType());

    // TODO(zachh): Per new mocks, may need to add method to CallTypeIconsView to disable coloring.
+11 −0
Original line number Diff line number Diff line
@@ -16,10 +16,21 @@
  -->
<resources>

  <style name="primary_textview">
    <item name="android:textColor">@color/primary_text_color</item>
    <item name="android:fontFamily">sans-serif</item>
  </style>

  <style name="primary_textview_new_call">
    <item name="android:textColor">@color/primary_text_color</item>
    <item name="android:fontFamily">sans-serif-medium</item>
  </style>

  <style name="secondary_textview">
    <item name="android:textColor">@color/secondary_text_color</item>
    <item name="android:fontFamily">sans-serif</item>
  </style>

  <style name="secondary_textview_new_call">
    <item name="android:textColor">@color/missed_call</item>
    <item name="android:fontFamily">sans-serif-medium</item>