diff --git a/app/src/main/java/org/tasks/sync/AddAccountDialog.java b/app/src/main/java/org/tasks/sync/AddAccountDialog.java index e7f53131f..070618739 100644 --- a/app/src/main/java/org/tasks/sync/AddAccountDialog.java +++ b/app/src/main/java/org/tasks/sync/AddAccountDialog.java @@ -11,6 +11,8 @@ import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import androidx.core.content.ContextCompat; +import androidx.core.graphics.drawable.DrawableCompat; import com.todoroo.astrid.gtasks.auth.GtasksLoginActivity; import org.tasks.R; import org.tasks.caldav.CaldavAccountSettingsActivity; @@ -39,7 +41,12 @@ public class AddAccountDialog { View view = super.getView(position, convertView, parent); view.findViewById(R.id.text1).setText(services[position]); view.findViewById(R.id.text2).setText(descriptions[position]); - view.findViewById(R.id.image_view).setImageResource(icons[position]); + ImageView icon = view.findViewById(R.id.image_view); + icon.setImageResource(icons[position]); + if (position == 1) { + DrawableCompat.setTint( + icon.getDrawable(), ContextCompat.getColor(getContext(), R.color.icon_tint)); + } return view; } };