Skip to content

[Bug]: Android tablet launches in portrait letterbox while in landscape mode #24448

Open

Description

@mingyue2425

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Hold the Xiaomi tablet in landscape orientation.
  2. Fully close T3 Code and launch it again while the tablet remains in landscape mode.
  3. The app opens in a portrait-sized letterboxed window, with the tablet wallpaper visible on both sides.
  4. Rotate the tablet to portrait orientation.
  5. Rotate it back to landscape.
  6. T3 Code now fills the screen and displays the correct tablet layout.

Expected behavior

T3 Code should launch directly into its full-screen landscape tablet layout without requiring any device rotation.

Actual behavior

When launched in landscape orientation, T3 Code initially appears in a narrow portrait-sized window centered on the screen. The wallpaper remains visible on both sides. Rotating the tablet to portrait and back to landscape causes the app to expand and display the correct full-screen tablet layout.

Impact

Minor bug or occasional failure

Version or commit

2.0.0

Environment

Device: Xiaomi tablet OS: Xiaomi HyperOS Platform: Android App: T3 Code (Android) Orientation: Landscape

Logs or stack traces

Screenshots, recordings, or supporting files

Screenshot_2026-10-24-19-41-40-200_com.t3tools.t3code.jpg
Screenshot_2026-10-24-19-41-35-108_com.t3tools.t3code.jpg

Workaround

Rotating the tablet to portrait orientation and then back to landscape restores the correct full-screen layout. This workaround must be repeated whenever the issue occurs.

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Oct 24, 2026
  2. juliusmarminge commented on Oct 27, 2026

    @juliusmarminge
    Member

    Tested current main at a2398c2ce3 with the Android development client on a Pixel Tablet emulator (Android 16/API 36). Force-stopping and launching in landscape filled the display; rotating to portrait and back also filled the display. This was the disconnected app state, so it does not establish the behavior on HyperOS.

    Which Xiaomi tablet model, HyperOS version, and Android version are affected? Also, is HyperOS’s per-app orientation/aspect-ratio setting for T3 Code at its default, or overridden?

    Pixel Tablet landscape cold launch

  3. mingyue2425 commented on Oct 29, 2026

    @mingyue2425
    Author

    3. Tested current main at a2398c2ce3 with the Android development client on a Pixel Tablet emulator (Android 16/API 36). Force-stopping and launching in landscape filled the display; rotating to portrait and back also filled the display. This was the disconnected app state, so it does not establish the behavior on HyperOS.
    Which Xiaomi tablet model, HyperOS version, and Android version are affected? Also, is HyperOS’s per-app orientation/aspect-ratio setting for T3 Code at its default, or overridden?
    Pixel Tablet landscape cold launch

    Thanks for looking into this and testing it!

    I'm using a Redmi K Pad, running HyperOS 3 (Android 16).

    I couldn't find any app-specific orientation or aspect ratio settings for T3 Code in HyperOS, and I haven't manually changed or overridden any related settings, so they should all be at their system defaults.

    I also confirmed that the issue still persists in version 2.2.0.

    Please let me know if there's anything else I can check or test on my device. I'd be happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions