Closed Bug 1383898 Opened 7 years ago Closed 7 years ago

Send to Device in Page Action Menu lacks tablet icon

Categories

(Firefox :: Sync, defect, P2)

55 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: rfeeley, Assigned: eoger)

Details

Attachments

(3 files)

Attached image ipad.png
STEPS TO REPRODUCE
1. Enable Sync in dektop
2. Enable Sync on a tablet device
3. Open Send to device in Page Action Menu

EXPECTED RESULTS
- Tablet icon is shown

ACTUAL RESULTS
- Smartphone icon is shown
>[17:39:12]  <eoger>	iOS does write formfactor = "tablet" at least
>[17:39:16]  <eoger>	so it should be do-able
>[17:39:20]  <eoger>	do we have the svg for that?

I'm also concerned by the fact that the Android tablet detection [0] might not be really "rock solid" with phone screens getting bigger and bigger every year. What do you think Richard? We could also activate that icon only with iOS devices, who have way better formfactor detection capabilities.

[0] http://searchfox.org/mozilla-central/source/mobile/android/thirdparty/com/adjust/sdk/DeviceInfo.java#122
Flags: needinfo?(rnewman)
Flags: needinfo?(rfeeley)
(In reply to Edouard Oger [:eoger] from comment #1)

> I'm also concerned by the fact that the Android tablet detection [0]

That's actually Adjust's code; it's nothing to do with Sync.

Sync uses this:

https://dxr.mozilla.org/mozilla-central/source/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/HardwareUtils.java#66

which is this:

        if (screenLayoutSize == Configuration.SCREENLAYOUT_SIZE_XLARGE) {
            sIsLargeTablet = true;
        } else if (screenLayoutSize == Configuration.SCREENLAYOUT_SIZE_LARGE) {
            sIsSmallTablet = true;
        }

like this:

https://dxr.mozilla.org/mozilla-central/source/mobile/android/services/src/main/java/org/mozilla/gecko/sync/SharedPreferencesClientsDataDelegate.java#106

That code is used throughout Fennec.


> not be really "rock solid" with phone screens getting bigger and bigger
> every year. What do you think Richard?

There is a concern here, yes.

"Large" ("smalltablet") roughly corresponds to 4-7" devices. This is meant to catch the Galaxy Note and so on.
"XLarge" ("largetablet") roughly corresponds to 7-10" devices.

https://developer.android.com/guide/practices/screens_support.html

The important thing is that this agrees with the devices on which we show the Firefox tablet UI.

A good way to test this concern: what value do we use for a 5" phone? Does it use the Firefox phone UI? (It should.)
Flags: needinfo?(rnewman)
Of course, whether the formfactor field is set correctly is really a totally separate bug (which I encourage you to file if you have reasonable doubts!); IMO if you have a client record that claims to be from a small or large tablet, use the tablet icon.
> That's actually Adjust's code; it's nothing to do with Sync.
My bad, I didn't notice the path :)

> what value do we use for a 5" phone?
I use a Nexus 5X which has a screen size of 5.2" and getting the phone UI.

Thank you for your clarifications Richard.
Let's move on with this.
Flags: needinfo?(rfeeley)
Priority: -- → P2
Assignee: nobody → eoger
Attached image device-tablet-16.svg
Here’s the tablet icon in SVG format.
Comment on attachment 8902797 [details]
Bug 1383898 - Add tablet icon to Send Page to Device panel.

https://reviewboard.mozilla.org/r/174464/#review180228
Attachment #8902797 - Flags: review?(markh) → review+
Pushed by eoger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b28fb2072399
Add tablet icon to Send Page to Device panel. r=markh
https://hg.mozilla.org/mozilla-central/rev/b28fb2072399
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: