Loading java/com/android/dialer/dialpadview/theme/res/values/styles.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 java/com/android/incallui/DialpadFragment.java +0 −18 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading java/com/android/incallui/theme/res/values/colors.xml +2 −2 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
java/com/android/dialer/dialpadview/theme/res/values/styles.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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
java/com/android/incallui/DialpadFragment.java +0 −18 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading
java/com/android/incallui/theme/res/values/colors.xml +2 −2 Original line number Diff line number Diff line Loading @@ -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. Loading