Merge "Change dream icon color to be the same as the text color." into tm-dev am: 090e1d395a

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17015305

Change-Id: I8f76801f746a44d09c8f4e778d71fb55933306ef
This commit is contained in:
TreeHugger Robot
2022-02-28 21:16:37 +00:00
committed by Automerger Merge Worker

View File

@@ -32,7 +32,6 @@ import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.android.settings.R;
import com.android.settingslib.Utils;
import java.util.List;
@@ -41,7 +40,8 @@ import java.util.List;
*/
public class DreamAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
private final List<IDreamItem> mItemList;
private final @LayoutRes int mLayoutRes;
@LayoutRes
private final int mLayoutRes;
private int mLastSelectedPos = -1;
/**
@@ -90,8 +90,8 @@ public class DreamAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
? mContext.getDrawable(R.drawable.ic_dream_check_circle)
: item.getIcon();
if (icon instanceof VectorDrawable) {
icon.setTint(Utils.getColorAttrDefaultColor(mContext,
com.android.internal.R.attr.colorAccentPrimaryVariant));
icon.setTintList(
mContext.getColorStateList(R.color.dream_card_text_color_state_list));
}
final int iconSize = mContext.getResources().getDimensionPixelSize(
R.dimen.dream_item_icon_size);