Name in Navigation Header
This commit is contained in:
@@ -798,8 +798,8 @@ public class MainActivity extends AppCompatActivity
|
||||
}
|
||||
|
||||
String email = "";
|
||||
if (tokenKVV != null && !TextUtils.isEmpty(tokenKVV.getEmail())) {
|
||||
email = tokenKVV.getFullName();
|
||||
if (tokenKVV != null && !TextUtils.isEmpty(tokenKVV.getEmail()) && !"null".equals(tokenKVV.getEmail())) {
|
||||
email = tokenKVV.getEmail();
|
||||
} else if (tokenBB != null && !TextUtils.isEmpty(tokenBB.getUsername())) {
|
||||
email = tokenBB.getUsername() + "@zedat.fu-berlin.de";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user