diff --git a/app/src/main/java/com/example/citrusclient/views/MainActivity.java b/app/src/main/java/com/example/citrusclient/views/MainActivity.java index f83afb9..13d0dc2 100644 --- a/app/src/main/java/com/example/citrusclient/views/MainActivity.java +++ b/app/src/main/java/com/example/citrusclient/views/MainActivity.java @@ -61,6 +61,10 @@ .commit(); } + public void backFragment(){ + getSupportFragmentManager().popBackStack(); + } + private void setNavViewEvent(){ BottomNavigationView navView = findViewById(R.id.bottomNavigationView); navView.setSelectedItemId(R.id.home); @@ -78,7 +82,7 @@ }else if(itemId == R.id.calendar){ //カレンダ showFragment(new CalendarFragment()); }else if(itemId == R.id.face){//マイページ - + showFragment(new CreateScheduleFragment()); } return true; }