diff options
-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); |