Fixing crash on ProfileFragment (#865)

Fixing crash on ProfileFragment

Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/865
Reviewed-by: M M Arif <mmarif@noreply.codeberg.org>
Co-Authored-By: opyale <opyale@noreply.codeberg.org>
Co-Committed-By: opyale <opyale@noreply.codeberg.org>
This commit is contained in:
opyale 2021-03-31 18:36:47 +02:00 committed by M M Arif
parent 4ccc66b04e
commit 4b140f3195
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
@Override
public void onSuccess() {
int textColor = new ColorInverter().getImageViewContrastColor(userAvatar);
int textColor = new ColorInverter().getImageViewContrastColor(userAvatarBackground);
userFullName.setTextColor(textColor);
userEmail.setTextColor(textColor);

View File

@ -97,7 +97,7 @@ public class ProfileFragment extends Fragment {
@Override
public void onSuccess() {
int invertedColor = new ColorInverter().getImageViewContrastColor(userAvatar);
int invertedColor = new ColorInverter().getImageViewContrastColor(userAvatarBackground);
userFullName.setTextColor(invertedColor);
divider.setBackgroundColor(invertedColor);