Closed Bug 2054230 Opened 1 month ago Closed 1 month ago

[Google Lens] Google Lens title-text ("Google Lens" or "QR Code") is partially-missing on some devices, due to overlapping front-facing camera lens

Categories

(Firefox for Android :: Search, defect)

All
Android
defect

Tracking

()

VERIFIED FIXED
155 Branch
Tracking Status
firefox154 --- verified
firefox155 --- verified

People

(Reporter: dholbert, Assigned: harrisono)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3])

Attachments

(5 files, 1 obsolete file)

Steps to reproduce

  1. Open a new tab
  2. Focus the URL bar
  3. Tap the Google Lens logo at the right side
  4. Tap back and forth between Google Lens and QR-Code-Scanner at the bottom of the screen, and look at the title-text at the top of the screen.

Expected behavior

Readable title-text, dodging the "unsafe" top portion of the screen where there might be a front-facing camera lens.

Actual behavior

The title text overlaps my front-facing camera lens (which is a cutout in my phone's screen), so some of the title-text is missing. Specifically:

  • In the "Google Lens" title-text, the top halves of the "le" characters are missing.
  • In the "QR Code" title, the top halves of the "C" character is missing.

Device information

  • Firefox version: 154.0a1 Nightly 2026-07-09
  • Android device model: Pixel 10 Pro XL
  • Android OS version: 17

Any additional information?

On my Pixel 6a, the title-text is a bit lower for some reason, and it doesn't overlap the camera lens there.
But on my Pixel 10 Pro XL, it's smooshed right against the top of the screen, even looking like it overlaps the system tray which is briefly visible as I enter scanner mode.

Flags: needinfo?(hoglesby)
Attachment #9606844 - Attachment description: screencast of bug → video recording showing the bug
Attachment #9606846 - Attachment description: screenshot showing "QR Code" with "C" missing its top half → screenshot showing "QR Code" with "C" missing its top half, on Pixel 10 Pro XL
Attachment #9606860 - Attachment description: screenshot showing "QR Code" with "C" missing its top half, on Pixel 6a → (mis-paste attachment; disregard)
Attachment #9606860 - Attachment is obsolete: true

(In reply to Daniel Holbert [:dholbert] from comment #0)

On my Pixel 6a, the title-text is a bit lower for some reason, and it doesn't overlap the camera lens there.

Update: I've now managed to also trigger the bug (text overlapping camera lens cutout) on my Pixel 6a.

STR there:

  1. Open Android Settings app.
  2. Tap "Display & Touch" and then "Display size & text"
  3. Drag the "Font size" slider all the way to the right (maximum font size), and the "Display size" slider all the way to the left (minimum display size). (for maximum effect - the issue happens with other combinations of these sliders too, but this is the easiest to describe & see)
  4. Open Firefox Nightly and perform STR from comment 0.

See attached photo of the results, with top half of "C" missing (on Pixel 6a)

Relatedly, the x in the top-left-corner is un-tappable for several seconds, as you enter the Google Lens view, because it's covered up by the system tray (which is transparent but absorbs taps).

You can see that overlap in my video that I attached in comment 1. From at least t=2s to t=5s in that video, you can see the "x" in the top left corner is overlapping the time (4:40). I'm not tapping that area in the video -- but if I do (attempt to tap the x), the tap doesn't make it to the x because it's blocked by the system tray, and so it doesn't have any effect.

Eventually the system tray gets auto-hidden, and then the x becomes tappable.

I'm mentioning this here rather than filing a separate bug about it because the x icon and the "Google Lens/QR Code" titles are at the same y-position on-screen -- and shifting them both downwards on the screen is probably the right way to address both issues (so that the "x" can dodge the system tray and the title can dodge the camera cutout).

Ok I can reproduce, I'll work on a fix now.

Flags: needinfo?(hoglesby)
Assignee: nobody → hoglesby
Status: NEW → ASSIGNED
Whiteboard: [fxdroid][group3]
Pushed by hoglesby@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/38488ae8de2f https://hg.mozilla.org/integration/autoland/rev/573facb7dafc Make LensCameraScreen respect system status bar boundaries r=android-reviewers,petru
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch

Maybe worth an uplift to 154?

This does look much better on Nightly, but 154beta (with secret setting enabled) is still affected.

Flags: needinfo?(hoglesby)

sure, I'll submit an uplift request. maybe up to 153.

Flags: needinfo?(hoglesby)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Without this patch, some users will see the titles for the Google Lens integration appear under any front-facing camera cut-outs. Poor user experience and can lead to confusion.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Low risk UI change to the Google Camera lens activity which is still a new feature being rolled out soon (but not yet).
  • String changes made/needed?: none.
  • Is Android affected?: yes
Attachment #9621370 - Flags: approval-mozilla-beta?
Attachment #9621370 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed on the Firefox for Android Nightly 155.0a1 from 8/6 and on the Firefox for Android Beta 154.0b7.
Tested with a Pixel 10 (Android 16), Pixel 9 Pro XL (Android 17), and a Pixel 6 (Android 17).

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: