From 6b2f666027f6c8083aa41b9fffa423f94147253c Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Wed, 15 Feb 2023 10:02:39 -0800 Subject: [PATCH] Fix app crash when show History in ClusterInteractionFragment (#25066) --- .../clusterinteraction/ClusterInteractionFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt index c502f51d939ff9..c2dea99c756d51 100644 --- a/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt +++ b/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt @@ -90,7 +90,7 @@ class ClusterInteractionFragment : Fragment() { private fun showFragment(fragment: Fragment) { val fragmentTransaction = requireActivity().supportFragmentManager .beginTransaction() - .replace(R.id.fragment_container, fragment, fragment.javaClass.simpleName) + .replace(R.id.nav_host_fragment, fragment, fragment.javaClass.simpleName) fragmentTransaction.addToBackStack(null) fragmentTransaction.commit() }