File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
app/src/main/java/to/bitkit/ui Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ import androidx.compose.animation.fadeOut
1010import androidx.compose.runtime.LaunchedEffect
1111import androidx.compose.runtime.getValue
1212import androidx.compose.runtime.rememberCoroutineScope
13+ import androidx.compose.ui.Modifier
14+ import androidx.compose.ui.semantics.semantics
15+ import androidx.compose.ui.semantics.testTagsAsResourceId
1316import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
1417import androidx.fragment.app.FragmentActivity
1518import androidx.lifecycle.compose.collectAsStateWithLifecycle
@@ -75,7 +78,11 @@ class MainActivity : FragmentActivity() {
7578 installSplashScreen()
7679 enableAppEdgeToEdge()
7780 setContent {
78- AppThemeSurface {
81+ AppThemeSurface (
82+ modifier = Modifier .semantics {
83+ testTagsAsResourceId = true // see https://github.com/appium/appium/issues/15138
84+ }
85+ ) {
7986 val scope = rememberCoroutineScope()
8087 if (! walletViewModel.walletExists) {
8188 val startupNavController = rememberNavController()
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import androidx.compose.material3.darkColorScheme
88import androidx.compose.material3.lightColorScheme
99import androidx.compose.runtime.Composable
1010import androidx.compose.runtime.Stable
11+ import androidx.compose.ui.Modifier
1112import androidx.compose.ui.graphics.Color
1213
1314val Gray100 = Color (0xFFF4F4F4 )
@@ -51,11 +52,15 @@ private object ColorPalette {
5152
5253@Composable
5354internal fun AppThemeSurface (
55+ modifier : Modifier = Modifier ,
5456 content : @Composable () -> Unit ,
5557) {
5658 val isSystemInDarkTheme = true // isSystemInDarkTheme() // use computed value for dark theme
5759 AppTheme (inDarkTheme = isSystemInDarkTheme) {
58- Surface (content = content)
60+ Surface (
61+ content = content,
62+ modifier = modifier,
63+ )
5964 }
6065}
6166
You can’t perform that action at this time.
0 commit comments