File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/fr/free/nrw/commons/theme Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ public void initDrawer() {
9090 drawerLayout .addDrawerListener (toggle );
9191 toggle .setDrawerIndicatorEnabled (true );
9292 toggle .syncState ();
93- setUserName ();
9493 Menu nav_Menu = navigationView .getMenu ();
9594 View headerLayout = navigationView .getHeaderView (0 );
9695 ImageView userIcon = headerLayout .findViewById (R .id .user_icon );
@@ -102,7 +101,8 @@ public void initDrawer() {
102101 nav_Menu .findItem (R .id .action_logout ).setVisible (false );
103102 nav_Menu .findItem (R .id .action_bookmarks ).setVisible (true );
104103 nav_Menu .findItem (R .id .action_review ).setVisible (false );
105- }else {
104+ } else {
105+ setUserName ();
106106 userIcon .setVisibility (View .VISIBLE );
107107 nav_Menu .findItem (R .id .action_login ).setVisible (false );
108108 nav_Menu .findItem (R .id .action_home ).setVisible (true );
You can’t perform that action at this time.
0 commit comments