Closed Bug 921668 Opened 12 years ago Closed 12 years ago

Home Page Snippets icon is tiny on HiDPI devices

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

ARM
Android
defect
Not set
normal

Tracking

(fennec28+)

RESOLVED FIXED
Firefox 29
Tracking Status
fennec 28+ ---

People

(Reporter: flaki, Assigned: Margaret)

References

Details

Attachments

(3 files, 1 obsolete file)

Attached image 2013-09-28 00.52.24.png
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20130927040201 Steps to reproduce: The icon of the snippet is too tiny on HiDPI devices, like the Samsung Galaxy S4 (3x density).
OS: Windows 8 → Android
Hardware: x86_64 → ARM
I suspect a wrap_content or fill_parent might fix this http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/resources/layout/home_banner.xml although it could be a limitation of the PNG used in the testing add-on? When I encode back the base64 raw data used [1], I get back a 144px width 144px height image. [1] https://github.com/leibovic/snippets-server/blob/master/server.js#L6
Blocks: home-banner
Status: UNCONFIRMED → NEW
Ever confirmed: true
We should track this for 28 as part of the snippets work.
tracking-fennec: --- → ?
tracking-fennec: ? → 28+
Assignee: nobody → margaret.leibovic
Attached patch patchSplinter Review
The problem here is a bug in BitmapUtils. We're using a deprecated BitmapDrawable constructor that doesn't account for the target density: http://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable%28android.graphics.Bitmap%29
Attachment #8356665 - Flags: review?(wjohnston)
Attached patch ( (obsolete) — Splinter Review
Attachment #8356665 - Flags: review?(wjohnston) → review+
(Oops, hit enter too soon) I searched through the code and found other places we were doing this. I think this patch will actually fix the original issue in bug 917947, if we ever re-implement that feature (if we don't we should probably get rid of this call to make an icon...)
Attachment #8356667 - Attachment is obsolete: true
Attachment #8356676 - Flags: review?(wjohnston)
Attachment #8356676 - Flags: review?(wjohnston) → review+
Blocks: 926711
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
I accidentally landed the second changeset with the wrong bug number: https://hg.mozilla.org/mozilla-central/rev/ea722ce55e26
As per the latest Nightly, this indeed looks great!
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: