mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
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:
parent
4ccc66b04e
commit
4b140f3195
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user