summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2016-07-25 18:32:02 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-28 20:43:41 -0700
commitc8275ccecd85f731745075203af27d4878793c23 (patch)
tree0330eba08b1df2f8329f236a985641aa3837a2c5
parent018a7eee8a59a9be4725d20dd28e06520ce95813 (diff)
downloadandroid_packages_apps_Messaging-c8275ccecd85f731745075203af27d4878793c23.tar.gz
android_packages_apps_Messaging-c8275ccecd85f731745075203af27d4878793c23.tar.bz2
android_packages_apps_Messaging-c8275ccecd85f731745075203af27d4878793c23.zip
Underp build
Change-Id: I49929448c8853837ca282bc8fb07e26845d2c203
-rw-r--r--src/com/android/messaging/ui/mediapicker/AudioRecordView.java5
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);