diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2016-07-04 09:02:57 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2016-07-04 09:02:57 +0200 |
commit | 3d5a448566aae50bc116e5ccc9017854ab292b5a (patch) | |
tree | d0ff1919de7308352680fe995437651c1f0aa1b6 | |
parent | e31d76d73a38a271bd5d5635a4959c14e6cbd0c7 (diff) |
fix crash on lollipop
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java index cd64ecf7..0835425a 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java @@ -2,6 +2,7 @@ package com.zeapo.pwdstore.utils; import android.graphics.Color; import android.os.Build; +import android.support.v4.content.ContextCompat; import android.support.v7.view.ActionMode; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; @@ -136,7 +137,7 @@ public class PasswordRecyclerAdapter extends RecyclerView.Adapter<PasswordRecycl holder.type.setTextColor(Color.BLACK); } else { holder.itemView.setBackgroundResource(Color.alpha(1)); - holder.type.setTextColor(activity.getColor(R.color.grey_500)); + holder.type.setTextColor(ContextCompat.getColor(activity, R.color.grey_500)); } } |