diff options
-rw-r--r-- | res/values/colors.xml | 1 | ||||
-rw-r--r-- | src/com/android/dialer/filterednumber/FilterNumberDialogFragment.java | 8 | ||||
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml index 8b7b1502f..bf7bfb235 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -24,6 +24,7 @@ <color name="dialer_button_text_color">#fff</color> <color name="dialer_flat_button_text_color">@color/dialer_theme_color</color> + <color name="dialer_snackbar_action_text_color">@color/dialer_theme_color</color> <!-- Color for the setting text. --> <color name="setting_primary_color">@color/dialtacts_primary_text_color</color> diff --git a/src/com/android/dialer/filterednumber/FilterNumberDialogFragment.java b/src/com/android/dialer/filterednumber/FilterNumberDialogFragment.java index 1e5294cc1..ebf212f0e 100644 --- a/src/com/android/dialer/filterednumber/FilterNumberDialogFragment.java +++ b/src/com/android/dialer/filterednumber/FilterNumberDialogFragment.java @@ -156,10 +156,15 @@ public class FilterNumberDialogFragment extends DialogFragment { return getString(R.string.snackbar_number_unblocked, mDisplayNumber); } + private int getActionTextColor() { + return getContext().getResources().getColor(R.color.dialer_snackbar_action_text_color); + } + private void blockNumber() { final String message = getBlockedMessage(); final String undoMessage = getUnblockedMessage(); final Callback callback = mCallback; + final int actionTextColor = getActionTextColor(); final OnUnblockNumberListener onUndoListener = new OnUnblockNumberListener() { @Override @@ -184,6 +189,7 @@ public class FilterNumberDialogFragment extends DialogFragment { Snackbar.make(mParentView, message, Snackbar.LENGTH_LONG) .setAction(R.string.block_number_undo, undoListener) + .setActionTextColor(actionTextColor) .show(); if (callback != null) { @@ -203,6 +209,7 @@ public class FilterNumberDialogFragment extends DialogFragment { final String message = getUnblockedMessage(); final String undoMessage = getBlockedMessage(); final Callback callback = mCallback; + final int actionTextColor = getActionTextColor(); final OnBlockNumberListener onUndoListener = new OnBlockNumberListener() { @Override @@ -227,6 +234,7 @@ public class FilterNumberDialogFragment extends DialogFragment { Snackbar.make(mParentView, message, Snackbar.LENGTH_LONG) .setAction(R.string.block_number_undo, undoListener) + .setActionTextColor(actionTextColor) .show(); if (callback != null) { diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java index f86fc5539..33210d358 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackLayout.java @@ -209,6 +209,8 @@ public class VoicemailPlaybackLayout extends LinearLayout // window. handler.postDelayed(deleteCallback, VOICEMAIL_DELETE_DELAY_MS + 50); + final int actionTextColor = + mContext.getResources().getColor(R.color.dialer_snackbar_action_text_color); Snackbar.make(VoicemailPlaybackLayout.this, R.string.snackbar_voicemail_deleted, Snackbar.LENGTH_LONG) .setDuration(VOICEMAIL_DELETE_DELAY_MS) @@ -220,6 +222,7 @@ public class VoicemailPlaybackLayout extends LinearLayout handler.removeCallbacks(deleteCallback); } }) + .setActionTextColor(actionTextColor) .show(); } }; |