Skip to content

Commit 9105e56

Browse files
committed
Remove long package name
1 parent c9405a1 commit 9105e56

File tree

1 file changed

+4
-2
lines changed
  • compose/snippets/src/main/java/com/example/compose/snippets/navigation3/basic

1 file changed

+4
-2
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/navigation3/basic/BasicSnippets.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import androidx.navigation3.runtime.NavEntry
2525
import androidx.navigation3.runtime.entry
2626
import androidx.navigation3.runtime.entryProvider
2727
import androidx.navigation3.ui.NavDisplay
28+
import com.example.compose.snippets.navigation3.ContentBlue
29+
import com.example.compose.snippets.navigation3.ContentGreen
2830
import com.example.compose.snippets.navigation3.savingstate.Home
2931

3032
// [START android_compose_navigation3_basic_1]
@@ -103,7 +105,7 @@ fun NavExample() {
103105
entryProvider = { key ->
104106
when (key) {
105107
is Home -> NavEntry(key) {
106-
_root_ide_package_.com.example.compose.snippets.navigation3.ContentGreen("Welcome to Nav3") {
108+
ContentGreen("Welcome to Nav3") {
107109
Button(onClick = {
108110
backStack.add(Product("123"))
109111
}) {
@@ -113,7 +115,7 @@ fun NavExample() {
113115
}
114116

115117
is Product -> NavEntry(key) {
116-
_root_ide_package_.com.example.compose.snippets.navigation3.ContentBlue("Product ${key.id} ")
118+
ContentBlue("Product ${key.id} ")
117119
}
118120

119121
else -> NavEntry(Unit) { Text("Unknown route") }

0 commit comments

Comments
 (0)