Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaviva committed Jan 24, 2021
1 parent e02e8c4 commit e6e4584
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() }

}
}
Expand Down Expand Up @@ -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/"))
Expand Down

0 comments on commit e6e4584

Please sign in to comment.