ビルドエラー回避

This commit is contained in:
r-ca committed 2024-01-22 18:14:42 +09:00
1 parent 1ceb3e29b7
commit afef074242
1 file changed
+7 -7
@@ -106,11 +106,11 @@ public class MainActivity extends AppCompatActivity {
if (!isEnabled) bottomNavigationView.getMenu().removeItem(menuId); if (!isEnabled) bottomNavigationView.getMenu().removeItem(menuId);
} }
@Override // @Override
public void navigateToFragment(Fragment fragment) { // public void navigateToFragment(Fragment fragment) {
getSupportFragmentManager().beginTransaction() // getSupportFragmentManager().beginTransaction()
.replace(R.id.nav_host_fragment, fragment) // .replace(R.id.nav_host_fragment, fragment)
.addToBackStack(null) // .addToBackStack(null)
.commit(); // .commit();
} // }
} }