Made layout actually look good. Hopefully fixed codeacities complaints.

This commit is contained in:
Bruce Nishimura 2017-08-08 18:58:45 -04:00
parent 06efa26f5e
commit 1622f67a4b
2 changed files with 13 additions and 11 deletions

View file

@ -49,7 +49,8 @@ public class NavigationBaseActivity extends BaseActivity
public void initDrawer() {
navigationView.setNavigationItemSelectedListener(this);
username = CommonsApplication.getInstance().getCurrentAccount().name;
usernameTextView = ((TextView) navigationView.getHeaderView(0).findViewById(R.id.userNameText));
usernameTextView = ((TextView) navigationView.getHeaderView(0)
.findViewById(R.id.userNameText));
usernameTextView.setText(username != null ? username : "");
setSupportActionBar(toolbar);