diff options
author | Justin Klaassen <justinklaassen@google.com> | 2015-12-21 19:08:28 -0800 |
---|---|---|
committer | Justin Klaassen <justinklaassen@google.com> | 2015-12-23 00:02:54 -0800 |
commit | c624a3fb698c13312a5e14114c37f45e3b3438bc (patch) | |
tree | 702caf56119fed342a65dc6a699edf34cd10a97e /src/com/android/deskclock/timer/TimerSetupView.java | |
parent | 8737d037a77f0ae1ffc144e5289904efda14c9f2 (diff) |
Fix build warnings
Bug: 26292420
Change-Id: Ib5d8b09fa9d70f408c3097654bae5b6906fac048
Diffstat (limited to 'src/com/android/deskclock/timer/TimerSetupView.java')
-rw-r--r-- | src/com/android/deskclock/timer/TimerSetupView.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/deskclock/timer/TimerSetupView.java b/src/com/android/deskclock/timer/TimerSetupView.java index b4a5ce3e9..58f98150b 100644 --- a/src/com/android/deskclock/timer/TimerSetupView.java +++ b/src/com/android/deskclock/timer/TimerSetupView.java @@ -19,6 +19,7 @@ package com.android.deskclock.timer; import android.content.Context; import android.content.res.Resources; import android.graphics.Color; +import android.support.v4.content.ContextCompat; import android.text.format.DateUtils; import android.util.AttributeSet; import android.view.LayoutInflater; @@ -60,7 +61,7 @@ public class TimerSetupView extends LinearLayout implements Button.OnClickListen super(context, attrs); mColorAccent = Utils.obtainStyledColor(context, R.attr.colorAccent, Color.RED); - mColorHairline = context.getResources().getColor(R.color.hairline); + mColorHairline = ContextCompat.getColor(context, R.color.hairline); LayoutInflater.from(context).inflate(R.layout.time_setup_view, this); } @@ -232,4 +233,4 @@ public class TimerSetupView extends LinearLayout implements Button.OnClickListen private void updateFab() { mFabContainer.updateFab(FAB_ONLY_ANIMATED); } -}
\ No newline at end of file +} |