mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Revert "Revert "Set item group text color to workaround an Android bug""
This reverts commit 6bb2f9d179.
This commit is contained in:
@@ -92,6 +92,9 @@ public class FragmentIdentities extends FragmentBase {
|
||||
rvIdentity.addItemDecoration(itemDecorator);
|
||||
}
|
||||
|
||||
int textColorSecondary = Helper.resolveColor(getContext(), android.R.attr.textColorSecondary);
|
||||
int textColorTertiary = Helper.resolveColor(getContext(), android.R.attr.textColorTertiary);
|
||||
|
||||
DividerItemDecoration categoryDecorator = new DividerItemDecoration(getContext(), llm.getOrientation()) {
|
||||
@Override
|
||||
public void onDraw(@NonNull Canvas canvas, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {
|
||||
@@ -143,6 +146,9 @@ public class FragmentIdentities extends FragmentBase {
|
||||
TextView tvCategory = header.findViewById(R.id.tvCategory);
|
||||
TextView tvDate = header.findViewById(R.id.tvDate);
|
||||
|
||||
tvCategory.setTextColor(textColorSecondary);
|
||||
tvDate.setTextColor(textColorTertiary);
|
||||
|
||||
if (cards) {
|
||||
View vSeparator = header.findViewById(R.id.vSeparator);
|
||||
vSeparator.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user