Optimize - NavigationBarStyle - remove navigation bar white background

This commit is contained in:
2024-03-26 18:52:18 +08:00
parent 1bd81cdf6c
commit 4cc1c0f68b
3 changed files with 5 additions and 21 deletions

View File

@@ -63,6 +63,8 @@ class OxygenAppState(
val navController: NavHostController,
val launchPageConfig: LaunchPageConfig
) {
val topLevelDestinations: List<TopLevelDestination> = TopLevelDestination.entries
val currentDestination: NavDestination?
@Composable get() = navController
.currentBackStackEntryAsState().value?.destination
@@ -88,8 +90,6 @@ class OxygenAppState(
started = SharingStarted.WhileSubscribed(5.seconds.inWholeMilliseconds)
)
val topLevelDestinations: List<TopLevelDestination> = TopLevelDestination.entries
val currentTimeZone = timeZoneMonitor.currentTimeZone
.stateIn(
scope = coroutineScope,

View File

@@ -13,6 +13,7 @@ object ResourcesUtils {
fun getDisplayMetrics(context: Context) = context.resources.displayMetrics
@Suppress("DEPRECATION")
fun getAppLocale(context: Context): Locale =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) getConfiguration(context).locales.get(0)
else getConfiguration(context).locale
@@ -27,6 +28,7 @@ object ResourcesUtils {
"Unknown"
}
@Suppress("DEPRECATION")
fun getAppVersionCode(context: Context): Long =
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)