diff --git a/app/src/main/java/com/example/childguard/MainActivity.java b/app/src/main/java/com/example/childguard/MainActivity.java index 6d0c63a..003561a 100644 --- a/app/src/main/java/com/example/childguard/MainActivity.java +++ b/app/src/main/java/com/example/childguard/MainActivity.java @@ -118,6 +118,10 @@ public class MainActivity extends AppCompatActivity { getSupportFragmentManager().beginTransaction() .replace(findViewById(R.id.fragmentContainerView).getId(), NotificationFragment.newInstance("test", "test")) .commit(); + } else if (v.getItemId() == findViewById(R.id.navigation_settings).getId()) { + getSupportFragmentManager().beginTransaction() + .replace(findViewById(R.id.fragmentContainerView).getId(), SettingFragment.newInstance()) + .commit(); } return true; });