diff options
author | Brandon Maxwell <maxwelb@google.com> | 2015-11-19 17:15:32 -0800 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2015-11-20 12:42:14 -0800 |
commit | 13cd2ced0491d7621effa58df7f1f86b621ff134 (patch) | |
tree | a602be0deec12ab1c26c2afbe9d72ee57dd69050 /src | |
parent | 4ab77feb5825d3d04110d0bd02b7a2692f43ce78 (diff) |
Changing to use compat classes for getColor calls
Bug: 25776171
Change-Id: I369cd9ac77f866c72e88da9750aa8e62b610c2da
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockedNumbersFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java b/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java index 881ec0497..6b3f18a79 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java +++ b/src/com/android/dialer/filterednumber/BlockedNumbersFragment.java @@ -23,6 +23,7 @@ import android.content.Loader; import android.database.Cursor; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; +import android.support.v4.app.ActivityCompat; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.view.LayoutInflater; @@ -103,8 +104,8 @@ public class BlockedNumbersFragment extends ListFragment super.onResume(); ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar(); - ColorDrawable backgroundDrawable = - new ColorDrawable(getActivity().getColor(R.color.dialer_theme_color)); + ColorDrawable backgroundDrawable = new ColorDrawable( + ActivityCompat.getColor(getActivity(), R.color.dialer_theme_color)); actionBar.setBackgroundDrawable(backgroundDrawable); actionBar.setDisplayShowCustomEnabled(false); actionBar.setDisplayHomeAsUpEnabled(true); |