Closed Bug 1135796 Opened 10 years ago Closed 10 years ago

ActivityUtils incorrectly divides API levels

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox37+ fixed, firefox38+ fixed, firefox39 fixed, fennec37+)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox37 + fixed
firefox38 + fixed
firefox39 --- fixed
fennec 37+ ---

People

(Reporter: mcomella, Assigned: mcomella, Mentored)

References

Details

Attachments

(1 file, 1 obsolete file)

We check (Versions.features11Plus), but then proceed to use flags introduced in 16 and 14. https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/util/ActivityUtils.java
Blocks: splitapk
Mentor: rnewman
tracking-fennec: --- → ?
tracking-fennec: ? → 37+
Assignee: nobody → michael.l.comella
/r/4375 - Bug 1135796 - Update ActivityUtils to use proper API levels. r=rnewman Pull down this commit: hg pull review -r aafbbb38566d3b6fe6cccf877c5462aaa1781cb2
Attachment #8570019 - Flags: review?(rnewman)
Haven't tested on ICS to see if this regressed, but I'm not sure we have an ICS device around. Maybe we hadn't seen this sooner because the 3.0.x-4.0.x has so few users and none of them bothered to go into full screen mode.
Status: NEW → ASSIGNED
Comment on attachment 8570019 [details] MozReview Request: bz://1135796/mcomella https://reviewboard.mozilla.org/r/4373/#review3575 Ship It! ::: mobile/android/base/util/ActivityUtils.java (Diff revision 1) > } else { No need for else after return.
Attachment #8570019 - Flags: review?(rnewman) → review+
Found a device. NI self to test on it.
Flags: needinfo?(michael.l.comella)
Before this patch, the system status bar is not hidden but no crash; after this patch it is. Huzzah. Doesn't seem like a super important uplift to beta, but who knows how it affects HC-ICS-.
Flags: needinfo?(michael.l.comella)
Comment on attachment 8570019 [details] MozReview Request: bz://1135796/mcomella Will likely need a branch patch since I added ActivityUtils.isFullScreen. If the uplifter wants to handle this branch patch, just don't include the isFullScreen changes. Approval Request Comment [Feature/regressing bug #]: N/A [User impact if declined]: Users on HC - ICS devices will not have the system status bar hidden when they enter fullscreen mode. A polish issue. May also crash by accessing an invalid field, but I can't repro locally. [Describe test coverage new/current, TreeHerder]: None [Risks and why]: Low, we're conforming to API levels and falling back to old features. We don't have devices to test all the API levels in between, however, so maybe something terrible will happen. [String/UUID change made/needed]: None
Attachment #8570019 - Flags: approval-mozilla-beta?
Attachment #8570019 - Flags: approval-mozilla-aurora?
Attachment #8570019 - Flags: approval-mozilla-beta?
Attachment #8570019 - Flags: approval-mozilla-beta+
Attachment #8570019 - Flags: approval-mozilla-aurora?
Attachment #8570019 - Flags: approval-mozilla-aurora+
It's early in beta still so let's take this now and ensure it doesn't have a wider impact to user if we *didn't*.
Michael, can you please provide some instructions on how to reproduce this issue, so we can test your fix.
Flags: needinfo?(michael.l.comella)
On HC-ICS devices, when other devices entered full screen mode, these devices remained in the normal viewing mode. To test this, 1) Go to a fullscreen page (e.g. people.mozilla.org/~atrain/mobile/tests/test.mp4) 2) Long-press the video and select fullscreen Expected: System status bar dims Actual: Status bar does not dim After this patch, the expected happens. There was no crash because the Android fullscreen APIs use binary flags.
Flags: needinfo?(michael.l.comella)
Attachment #8570019 - Attachment is obsolete: true
Attachment #8619563 - Flags: review+
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: