Closed
Bug 921668
Opened 12 years ago
Closed 11 years ago
Home Page Snippets icon is tiny on HiDPI devices
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect)
Tracking
(fennec28+)
RESOLVED
FIXED
Firefox 29
| Tracking | Status | |
|---|---|---|
| fennec | 28+ | --- |
People
(Reporter: flaki, Assigned: Margaret)
References
Details
Attachments
(3 files, 1 obsolete file)
|
307.78 KB,
image/png
|
Details | |
|
1.31 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
|
3.48 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
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).
| Reporter | ||
Updated•12 years ago
|
OS: Windows 8 → Android
Hardware: x86_64 → ARM
Comment 1•12 years ago
|
||
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
Updated•12 years ago
|
| Assignee | ||
Comment 2•11 years ago
|
||
We should track this for 28 as part of the snippets work.
tracking-fennec: --- → ?
Updated•11 years ago
|
tracking-fennec: ? → 28+
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → margaret.leibovic
| Assignee | ||
Comment 3•11 years ago
|
||
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)
| Assignee | ||
Comment 4•11 years ago
|
||
Updated•11 years ago
|
Attachment #8356665 -
Flags: review?(wjohnston) → review+
| Assignee | ||
Comment 5•11 years ago
|
||
(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)
Updated•11 years ago
|
Attachment #8356676 -
Flags: review?(wjohnston) → review+
| Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
| Assignee | ||
Comment 8•11 years ago
|
||
I accidentally landed the second changeset with the wrong bug number:
https://hg.mozilla.org/mozilla-central/rev/ea722ce55e26
| Reporter | ||
Comment 9•11 years ago
|
||
As per the latest Nightly, this indeed looks great!
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
•