fix: Build errors
This commit is contained in:
@@ -72,7 +72,7 @@ class FeaturesRootSection : Routes.Route() {
|
||||
routeInfo.translatedKey?.value
|
||||
}
|
||||
}
|
||||
Text(titleText ?: "")
|
||||
Text(titleText ?: "", maxLines = 1, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
|
||||
private val alertDialogs by lazy { AlertDialogs(context.translation) }
|
||||
@@ -121,18 +121,6 @@ class FeaturesRootSection : Routes.Route() {
|
||||
routes.activityLauncher.let(block)
|
||||
}
|
||||
|
||||
override val title: @Composable () -> Unit = {
|
||||
val navBackStackEntry by routes.navController.currentBackStackEntryAsState()
|
||||
val text = remember(navBackStackEntry) {
|
||||
navBackStackEntry?.arguments?.getString("name")?.let { containerName ->
|
||||
allContainers[containerName]?.let {
|
||||
context.translation[it.key.propertyName()]
|
||||
}
|
||||
} ?: routeInfo.translatedKey?.value
|
||||
}
|
||||
text?.let { Text(it, maxLines = 1, overflow = TextOverflow.Ellipsis) }
|
||||
}
|
||||
|
||||
override val content: @Composable (NavBackStackEntry) -> Unit = {
|
||||
Container(context.config.root)
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package me.rhunk.snapenhance.ui.manager.pages.location
|
||||
import android.os.Parcel
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Add
|
||||
|
||||
Reference in New Issue
Block a user