Skip to content

Commit

Permalink
TIQR-495: Fix status bar icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
dzolnai committed Jan 10, 2025
1 parent 51eda00 commit cfa6e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/src/main/kotlin/nl/eduid/MainComposeActivity.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package nl.eduid

import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
Expand All @@ -22,7 +24,7 @@ class MainComposeActivity : ComponentActivity() {
private var navController: NavHostController? = null

override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
enableEdgeToEdge(statusBarStyle = SystemBarStyle.light(Color.TRANSPARENT, Color.TRANSPARENT))
super.onCreate(savedInstanceState)
setContent {
EduidAppAndroidTheme {
Expand Down
1 change: 0 additions & 1 deletion app/src/main/kotlin/nl/eduid/screens/scan/ScanScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ fun ScanScreen(
)
) = Scaffold(
modifier = Modifier
.systemBarsPadding()
.onKeyEvent { keyEvent ->
//This will only work if the screen has a focused child. Which will prompt they keyboard.
//The other solution is to listen to key events on the MainComposeActivity but then we need to learn the currently displayed screen,
Expand Down

0 comments on commit cfa6e86

Please sign in to comment.