Fixed
Status Update
Comments
yu...@schimke.ee <yu...@schimke.ee> #2
Specifically WEAR_OS_LARGE_ROUND should be enough to imply the default uiMode.
uc...@google.com <uc...@google.com>
jg...@google.com <jg...@google.com>
ko...@google.com <ko...@google.com>
ko...@google.com <ko...@google.com>
an...@google.com <an...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Narwhal | 2025.1.1 Canary 1
- Android Gradle Plugin 8.11.0-alpha01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
STEPS TO REPRODUCE:
1. Run the sample
2. Observe the uiMode on screen
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
```
@Preview(
apiLevel = 26,
uiMode = Configuration.UI_MODE_TYPE_WATCH,
showSystemUi = true,
device = Devices.WEAR_OS_LARGE_ROUND
)
@Preview(
device = Devices.WEAR_OS_LARGE_ROUND,
showSystemUi = true,
backgroundColor = 0xff000000,
showBackground = true,
)
@Composable
fun TestPreview() {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
val configuration = LocalConfiguration.current
Text(text = configuration.uiMode.toString(), color = Color.Blue, fontSize = 30.sp)
}
}
```
I'd expect both to be 6.
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build:
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS: