Skip to content

Commit

Permalink
set username as soon as it was received
Browse files Browse the repository at this point in the history
  • Loading branch information
andresth committed Aug 13, 2017
1 parent c96ccc1 commit e4b4a88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/in/andres/kandroid/ui/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public void onGetMe(boolean success, KanboardUserInfo result) {
boolean prog = !showProgress(false);
if (success) {
Me = result;
((TextView) findViewById(R.id.nav_serverurl)).setText(Me.getName());
if (prog) {
if (mode == 0)
combineDashboard();
Expand Down Expand Up @@ -328,9 +329,9 @@ public void onClick(View view) {
ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close) {
public void onDrawerOpened(View drawerView) {
TextView mServerUrl = (TextView) findViewById(R.id.nav_serverurl);
if ((Me != null) && (mServerUrl != null))
mServerUrl.setText(Me.getName());
// TextView mServerUrl = (TextView) findViewById(R.id.nav_serverurl);
// if ((Me != null) && (mServerUrl != null))
// mServerUrl.setText(Me.getName());
}
};
drawer.addDrawerListener(toggle);
Expand Down

0 comments on commit e4b4a88

Please sign in to comment.