Closed
Bug 1376995
Opened 8 years ago
Closed 8 years ago
(photon) Update status bar color while switching between normal mode and private mode
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox57 verified)
VERIFIED
FIXED
Firefox 57
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | verified |
People
(Reporter: jwu, Assigned: jwu)
References
Details
(Whiteboard: [FNC][SPT57.1][MVP])
Attachments
(1 file)
No description provided.
| Assignee | ||
Updated•8 years ago
|
Blocks: fennec-photon-misc_ui
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → topwu.tw
| Comment hidden (mozreview-request) |
Comment 3•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8890718 [details]
Bug 1376995 - Update status bar color while switching between normal mode and private mode.
https://reviewboard.mozilla.org/r/161886/#review169534
::: mobile/android/base/java/org/mozilla/gecko/BrowserApp.java:2274
(Diff revision 2)
> delegate.onTabsTrayShown(this, mTabsPanel);
> }
> }
> +
> + // Since tabs tray only has dark theme, always update the status bar with dark background.
> + WindowUtil.invalidateStatusBarColor(this, /* forceDark = */ true);
I think write comment inside a line of code is not a good idea, is this necessary?
::: mobile/android/base/java/org/mozilla/gecko/util/WindowUtil.java:55
(Diff revision 2)
> + } else {
> + if (forceDark) { // Force to use dark background color
> + colorResId = R.color.status_bar_bg_color_private;
> + darkForeground = false;
> + } else {
> + final Tab tab = Tabs.getInstance().getSelectedTab();
If possible, to pass 'isPrivate' as parameter to here, might be better than access `Tab` here.
Attachment #8890718 -
Flags: review?(walkingice0204) → review+
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3cd5947b10f1
Update status bar color while switching between normal mode and private mode. r=walkingice
Keywords: checkin-needed
Comment 6•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Updated•8 years ago
|
Whiteboard: [FNC][SPT_57.1][MVP]
Updated•8 years ago
|
Whiteboard: [FNC][SPT_57.1][MVP] → [FNC][SPT57.1][MVP]
Comment 7•8 years ago
|
||
Verified as fixed on Nightly 57 (2017-08-24).
Works fine on these devices:
Xiaomi Mi Pad 2 (Android 5.1)
Oneplus Two (Android 6.0.1)
LG Nexus 5 (Android 6.0.1)
HTC 10 (Android 7.0.1)
The status bar color is not changed on some devices:
Prestigio Grace X5 (Android 4.4.2)
HTC Nexus 9 (Android 7.1.1)
Xiaomi Mi Pad 2 (Android 5.1)
Lenovo Yoga Tablet 2 (Android 4.4.2)
I've logged a new issue for this: 1393754
Status: RESOLVED → VERIFIED
No longer depends on: 1393754
Updated•8 years ago
|
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•