diff --git a/app/src/main/java/org/mian/gitnex/fragments/ProfileFragment.java b/app/src/main/java/org/mian/gitnex/fragments/ProfileFragment.java index 0a837637..2535219d 100644 --- a/app/src/main/java/org/mian/gitnex/fragments/ProfileFragment.java +++ b/app/src/main/java/org/mian/gitnex/fragments/ProfileFragment.java @@ -1,6 +1,7 @@ package org.mian.gitnex.fragments; import android.content.Context; +import android.content.res.ColorStateList; import android.graphics.Typeface; import android.os.Bundle; import android.view.LayoutInflater; @@ -13,6 +14,7 @@ import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; +import androidx.core.widget.ImageViewCompat; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentStatePagerAdapter; @@ -55,6 +57,7 @@ public class ProfileFragment extends Fragment { ImageView userAvatar = v.findViewById(R.id.userAvatar); TextView userLogin = v.findViewById(R.id.userLogin); TextView userLanguage = v.findViewById(R.id.userLanguage); + ImageView userLanguageIcon = v.findViewById(R.id.userLanguageIcon); ViewGroup aboutFrame = v.findViewById(R.id.aboutFrame); @@ -85,6 +88,8 @@ public class ProfileFragment extends Fragment { userLogin.setTextColor(textColor); userLanguage.setTextColor(textColor); + ImageViewCompat.setImageTintList(userLanguageIcon, ColorStateList.valueOf(textColor)); + blurView.setupWith(aboutFrame) .setBlurAlgorithm(new RenderScriptBlur(ctx)) .setBlurRadius(3) diff --git a/app/src/main/res/layout/fragment_profile.xml b/app/src/main/res/layout/fragment_profile.xml index 775ca4f0..8d3c30ed 100644 --- a/app/src/main/res/layout/fragment_profile.xml +++ b/app/src/main/res/layout/fragment_profile.xml @@ -73,6 +73,7 @@ android:gravity="center_vertical">