android: add navigation destinations for user profile

This commit is contained in:
Harsh Shandilya 2022-05-05 14:54:35 +05:30
parent f30113b483
commit c046036fdc
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 15 additions and 0 deletions

View file

@ -134,6 +134,17 @@
android:pathPattern="/s/....../...*"
android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="lobste.rs"
android:pathPattern="/u/......*"
android:scheme="https" />
</intent-filter>
</activity>
<provider
android:name="androidx.startup.InitializationProvider"

View file

@ -17,6 +17,10 @@ sealed class Destinations {
fun getRoute(postId: String) = "comments/$postId"
}
object User : Destinations() {
fun getRoute(username: String) = "user/$username"
}
companion object {
val startDestination
get() = Hottest