diff options
-rw-r--r-- | src/com/android/messaging/ui/mediapicker/AudioRecordView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/messaging/ui/mediapicker/AudioRecordView.java b/src/com/android/messaging/ui/mediapicker/AudioRecordView.java index df3f8d3..8f89e19 100644 --- a/src/com/android/messaging/ui/mediapicker/AudioRecordView.java +++ b/src/com/android/messaging/ui/mediapicker/AudioRecordView.java @@ -228,11 +228,12 @@ public class AudioRecordView extends FrameLayout implements final GradientDrawable backgroundDrawable = ((GradientDrawable) getResources() .getDrawable(R.drawable.audio_record_control_button_background)); if (isRecording()) { - foregroundDrawable.setColorFilter(getColor(R.color.mic_recording_color), PorterDuff.Mode.SRC_ATOP); + foregroundDrawable.setColorFilter(getResources().getColor(R.color.mic_recording_color), + PorterDuff.Mode.SRC_ATOP); backgroundDrawable.setColor(mThemeColor); } else { foregroundDrawable.setColorFilter(mThemeColor, PorterDuff.Mode.SRC_ATOP); - backgroundDrawable.setColor(getColor(R.color.mic_background_color)); + backgroundDrawable.setColor(getResources().getColor(R.color.mic_background_color)); } mRecordButtonVisual.setImageDrawable(foregroundDrawable); mRecordButtonVisual.setBackground(backgroundDrawable); |