From e6e4584a5f95b99a8668d2f422d783eaa2fbd48a Mon Sep 17 00:00:00 2001 From: vitaviva Date: Mon, 25 Jan 2021 00:22:17 +0800 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 099bc1e..b26e429 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,9 @@ class MainActivity : AppCompatActivity() { .findFragmentById(R.id.nav_host) as NavHostFragment navHostFragment.loadRoot(HomeFragment::class) + + //or load root with factory + //navHostFragment.loadRoot{ HomeFragment() } } } @@ -167,7 +170,7 @@ class MainActivity : AppCompatActivity() { } ``` -### 4. start Activity with uri +### 4. start Activity with URI ```kotlin val intent = Intent(Intent.ACTION_VIEW, Uri.parse("myapp://fragitiy.github.com/"))