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