Open Bug 1837498 Opened 1 years ago Updated 7 months ago

Homepage compose views do not resize when orientation changes

Categories

(Fenix :: Homepage, defect, P3)

All
Android
defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: gl, Assigned: vdreghici)

References

Details

(Whiteboard: [fxdroid])

Attachments

(4 files)

The Compose views on the Homepage do not resize to fit the new screen width when we rotate the screen (eg, portrait to landscape).

Steps to reproduce

  1. On the Homepage, observe any of the Compose views (eg, Recent Tabs, Collections, etc) and start switching orientations from portrait to landscape. This may require a couple of attempts. Scrolling will recompose the views and display correctly.
  2. Observe that the Compose views do not recompose and take up the full max width when the orientation changes.

Expected behavior

The Compose views should resize and take up the max width when the orientation changes.

Actual behavior

The Compose view may stay stuck in its original portrait size until we scroll and the view recomposes.

Summary: Compose views do not resize when orientation changes → Homepage compose views do not resize when orientation changes
Assignee: nobody → Vlad.DreghiciPopa
Status: NEW → ASSIGNED

I have investigated this issue on multiple Android versions, and it seems the issue is reproducible on multiple versions. The issue also seems to be inconsistent, sometimes the recomposition working as intended. I uploaded below three videos from Android versions 9, 10 and 11.

In Android 9 the only element that seems to be affected is the header of the "Jump back in" and "Recently visited" sections. As you can see, the issue reproduced only twice, in the first and last rotation of the screen.

In this recording, the issue is noticeable bot for landscape and portrait orientations.

Lastly, for Android 12 it seems like the issue can be reproduced almost every time a rotation occurs.

See Also: → 1836991
Duplicate of this bug: 1836991
Duplicate of this bug: 1827110

Stopped focusing on this for now, since we are refactoring the homepage recycler view into being pure compose. Will keep an eye on it for now.

See Also: → 1841909
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: