I have about eight contacts, and two of them are favorites. One is my mother, and one is my girlfriend. In the Contacts app, one has a Red Star, and the other lacks a star.
Google AI is a joke. It should be called Artificial Retardedness. Google AR is explaining what a red star on iPhone means, not an Android device.
My question is: What does the Red Star mean on a contact in the Contacts app?
And maybe a second question: where does the Red Star come from?
==========
Here's what I have tried to find the answer. I cloned the Contact app from https://android.googlesource.com/platform/packages/apps/Contacts/. Then, grep -wIR star to find references to the star. It leads to three hits:
- src/com/android/contacts/list/PinnedHeaderListView.java
- src/com/android/contacts/editor/GroupMembershipView.java
- src/com/android/contacts/list/ContactListItemView.java
GroupMembershipView.java has the following, but it is not causing the red star:
// Exclude favorites from the list - they are handled with special UI (star)
// Also exclude the default group.
if (groupId != mFavoritesGroupId && groupId != mDefaultGroupId
&& hasMembership(groupId)) {
String title = mGroupMetaData.getString(GroupMetaDataLoader.TITLE);
if (!TextUtils.isEmpty(title)) {
if (sb.length() != 0) {
sb.append(", ");
}
sb.append(title);
}
}
ContactListItemView.java has the following:
private void addStarImageHeader() {
mHeaderView = new ImageView(getContext());
final ImageView headerImageView = (ImageView) mHeaderView;
headerImageView.setImageDrawable(
getResources().getDrawable(R.drawable.quantum_ic_star_vd_theme_24,
getContext().getTheme()));
headerImageView.setImageTintList(ColorStateList.valueOf(getResources()
.getColor(R.color.material_star_pink)));
headerImageView.setContentDescription(
getContext().getString(R.string.contactsFavoritesLabel));
headerImageView.setVisibility(View.VISIBLE);
addView(headerImageView);
}
But quantum_ic_star_vd_theme_24.xml is white, not red:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>
</vector>