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

Commit fd3e904c authored by Fahim's avatar Fahim
Browse files

3694-Q-DialPad_color_issue

parent 23d9a5b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,6 +36,6 @@
    <item name="dialpad_text_color">@lineageos.platform:color/color_default_secondary_text</item>
    <item name="dialpad_text_color_primary">@lineageos.platform:color/color_default_accent</item>
    <item name="dialpad_text_color_secondary">@lineageos.platform:color/color_default_primary_text</item>
    <item name="dialpad_background">?android:attr/colorBackgroundFloating</item>
    <item name="dialpad_background">@lineageos.platform:color/color_default_foreground</item>
  </style>
</resources>
 No newline at end of file
+0 −18
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadUi>
  // KeyListener used with the "dialpad digits" EditText widget.
  private DtmfKeyListener dtmfKeyListener;
  private DialpadView dialpadView;
  private int currentTextColor;
  private View endCallSpace;
  private boolean shouldShowEndCallSpace = true;

@@ -165,26 +164,9 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadUi>
  @Override
  public void onResume() {
    super.onResume();
    updateColors();
    endCallSpace.setVisibility(shouldShowEndCallSpace ? View.VISIBLE : View.GONE);
  }

  public void updateColors() {
    int textColor = InCallPresenter.getInstance().getThemeColorManager().getPrimaryColor();

    if (currentTextColor == textColor) {
      return;
    }

    DialpadKeyButton dialpadKey;
    for (int i = 0; i < buttonIds.length; i++) {
      dialpadKey = (DialpadKeyButton) dialpadView.findViewById(buttonIds[i]);
      ((TextView) dialpadKey.findViewById(R.id.dialpad_key_number)).setTextColor(textColor);
    }

    currentTextColor = textColor;
  }

  @Override
  public void onDestroyView() {
    dtmfKeyListener = null;
+2 −2
Original line number Diff line number Diff line
@@ -20,10 +20,10 @@
  <!-- Used with some smaller texts in manage conference screen. -->
  <color name="conference_call_manager_secondary_text_color">#999999</color>

  <color name="incall_dialpad_background">#ffffff</color>
  <color name="incall_dialpad_background">@lineageos.platform:color/color_default_foreground</color>

  <!-- Background color for status bar. For portrait this will be ignored. -->
  <color name="statusbar_background_color">?android:attr/colorPrimary</color>
  <color name="statusbar_background_color">@lineageos.platform:color/color_default_primary_dark</color>

  <!-- Background colors for InCallUI. This is a set of colors which pass WCAG
       AA and all have a contrast ratio over 5:1.