Fixed
Status Update
Comments
je...@google.com <je...@google.com> #2
Attaching a bug report for Pixel Tablet
ta...@gmail.com <ta...@gmail.com> #3
And for Pixel 9 Pro Fold
je...@google.com <je...@google.com> #4
Hi Marco, thank you for the report. We will take a look.
an...@google.com <an...@google.com>
ta...@gmail.com <ta...@gmail.com> #5
that needs the tablet image, I believe
ap...@google.com <ap...@google.com> #6
The beta 1 sdk_gphone build won't automatically enable the change even the screen is sw600dp or greater. Future betas and the final release candidate will automatically enable the change if the screen is sw600dp or greater.
You can enable the forced change manually in one of the following two ways:
- With
adb shell
: Rundevice_config put window_manager ignore_activity_orientation_request true
to enable the change for all apps. - With Settings: enter "app info" -> "aspect ratio" -> "full screen" to enable the change for one app.
je...@google.com <je...@google.com>
pr...@google.com <pr...@google.com> #7
Thanks!
I tried with the Pixel Tablet emulator with build number `BP22.250124.008` and the `UNIVERSAL_RESIZABLE_BY_DEFAULT` flag enabled and now it works as expected.
I tried with the Pixel Tablet emulator with build number `BP22.250124.008` and the `UNIVERSAL_RESIZABLE_BY_DEFAULT` flag enabled and now it works as expected.
Description
Jetpack Compose version:
BOM 2024.09.00
Jetpack Compose component(s) used:
Compose Testing (createComposeRule)
Android Studio Build:
Android Studio Meerkat | 2024.3.1 Canary 3 Build #AI-243.21565.193.2431.12691553, built on November 21, 2024 Runtime version: 21.0.5+-12651406-b631.16 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 14.4.1
Steps to Reproduce or Code Sample to Reproduce:
Expected Behavior:
The default theme should prevent the ActionBar from overlapping the Compose content, as most users use themes without ActionBars in Compose-based projects. In fact, newly created Android projects use
android:Theme.Material.Light.NoActionBar
by default, which naturally avoids this issue. Updating the default testing environment to setwindowActionBar=false
would better align with typical use cases and expected behaviors.Actual Behavior:
The ActionBar is displayed and overlaps the Compose content. This leads to confusion, especially for beginners or developers trying to test simple layouts, as their content may not appear as expected.
Related links
Reproduced Repository:
https://github.com/takahirom/createComposeRule-ActionBar-Overrapping-issue/blob/main/module/src/androidTest/java/com/github/takahirom/module/ExampleInstrumentedTest.kt
Relevant Pull Request:
https://github.com/android/nowinandroid/pull/1719