Commit 5dd6ad62 authored by Sajal Narang's avatar Sajal Narang

Close drawer on launching ProfileFragment

parent a433e473
...@@ -100,6 +100,8 @@ public class MainActivity extends AppCompatActivity ...@@ -100,6 +100,8 @@ public class MainActivity extends AppCompatActivity
ProfileFragment profileFragment = new ProfileFragment(); ProfileFragment profileFragment = new ProfileFragment();
profileFragment.setArguments(bundle); profileFragment.setArguments(bundle);
updateFragment(profileFragment); updateFragment(profileFragment);
DrawerLayout drawer = findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
} }
}); });
TextView nameTextView = header.findViewById(R.id.user_name_nav_header); TextView nameTextView = header.findViewById(R.id.user_name_nav_header);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment