Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ dependencies {
implementation(libs.koin.android)
implementation(libs.kotlinx.datetime)
implementation(libs.coil.compose)
implementation(libs.accompanist.navigationAnimation)
implementation(platform(libs.firebase.bom))
implementation(libs.firebase.analytics)
implementation(libs.firebase.crashlytics)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.Image
Expand All @@ -25,7 +26,6 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.core.content.ContextCompat
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.core.view.WindowCompat
import androidx.lifecycle.lifecycleScope
import co.touchlab.droidcon.application.service.NotificationSchedulingService
import co.touchlab.droidcon.domain.service.AnalyticsService
Expand Down Expand Up @@ -67,7 +67,7 @@ class MainActivity :
splashScreen.setKeepOnScreenCondition { true }

// Do the minimal setup needed for launching the app
WindowCompat.setDecorFitsSystemWindows(window, false)
enableEdgeToEdge()

// Set up the UI immediately
setContent {
Expand Down
4 changes: 2 additions & 2 deletions android/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<item name="postSplashScreenTheme">@style/Theme.Droidcon</item>
</style>

<style name="Theme.Droidcon" parent="Theme.Material.DayNight.NoActionBar"></style>
<style name="Theme.Droidcon" parent="Theme.Material.DayNight.NoActionBar"/>

<style name="Theme.Material.DayNight.NoActionBar" parent="@android:style/Theme.Material.Light.NoActionBar" />
</resources>
</resources>
4 changes: 1 addition & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ gms-google-services = "4.4.2"
# TODO: Update Compose libraries. There is currently a conflicing issue with the HorizontalPager
compose-androidx-ui = "1.7.8"
compose-compiler = "1.5.15"
composeNavigation = "2.8.9"
composeNavigation = "2.9.5"
compose-jb = "1.7.3"

accompanistNavigationAnimation = "0.36.0"
splashscreen = "1.0.1"
junit = "4.13.2"
junitKtx = "1.2.1"
Expand All @@ -59,7 +58,6 @@ sqliter = { module = "co.touchlab:sqliter-driver", version.ref = "sqliter" }
compose-compiler = { module = "androidx.compose.compiler:compiler", version.ref = "compose-compiler" }
androidx-core-splashscreen = { module = "androidx.core:core-splashscreen", version.ref = "splashscreen" }

accompanist-navigationAnimation = { module = "com.google.accompanist:accompanist-navigation-animation", version.ref = "accompanistNavigationAnimation" }
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase-bom" }
firebase-analytics = { module = "com.google.firebase:firebase-analytics-ktx", version = "_" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-ktx", version = "_" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package co.touchlab.droidcon.ui.util

import androidx.compose.foundation.layout.systemBarsPadding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import co.touchlab.droidcon.ui.MainComposeView
import co.touchlab.droidcon.viewmodel.WaitForLoadedContextModel

@Composable
fun MainView(waitForLoadedContextModel: WaitForLoadedContextModel) {
MainComposeView(waitForLoadedContextModel = waitForLoadedContextModel, modifier = Modifier.systemBarsPadding())
MainComposeView(waitForLoadedContextModel = waitForLoadedContextModel, modifier = Modifier)
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ internal fun BottomNavigationView(viewModel: ApplicationViewModel, currentConfer
}
}
},
) { paddingValues ->
Box(modifier = Modifier.padding(bottom = paddingValues.calculateBottomPadding())) {
) { innerPadding ->
Box(modifier = Modifier.padding(bottom = innerPadding.calculateBottomPadding())) {
when (selectedTab) {
ApplicationViewModel.Tab.Schedule -> SessionListView(
viewModel = viewModel.schedule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ internal fun SessionListView(viewModel: BaseSessionListViewModel, title: String,
scrollBehavior = scrollBehavior,
)
},
) { paddingValues ->
) { innerPadding ->
var size by remember { mutableStateOf(IntSize(0, 0)) }
Column(
modifier = Modifier
.onSizeChanged { size = it }
.padding(top = paddingValues.calculateTopPadding()),
.padding(top = innerPadding.calculateTopPadding()),
) {
val days by viewModel.observeDays.observeAsState()
if (days?.isEmpty() != false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ private val DarkColorScheme = darkColorScheme(

@Composable
internal fun DroidconTheme(darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit) {
val colorScheme = when {
darkTheme -> DarkColorScheme
else -> LightColorScheme
val colorScheme = if (darkTheme) {
DarkColorScheme
} else {
LightColorScheme
}

MaterialTheme(
Expand Down