Additionally, we strip common subdomains like "m." or "www.".
MozReview-Commit-ID: IObzp6LBovx
--HG--
extra : rebase_source : 02e1f1224854df4006f275a6877eb5cd6ecf8a78
This combines getBaseDomain & getHostSecondLevel domain and allows us to be
more flexible.
MozReview-Commit-ID: 7FdWsfZvGFt
--HG--
extra : rebase_source : eed9361fef02609776c772d21a004004a1d9d543
This will be used by highlights, top sites, and the AS bottom sheet to set
their icons.
I chose to use centerCrop, over centerInside, because the mocks look like they
chose to do a center crop scale pattern:
https://mozilla.invisionapp.com/share/5JCHCGXPG#/screens/224085516
To my reviewer: some of this code comes from the next commit, where it is moved
from the Highlights code to this file.
MozReview-Commit-ID: 8rtTpjW8noL
--HG--
extra : rebase_source : e0cd3213174d6cd6f42fa84e41fe7335049b6d97
This change is unrelated to this bug.
According to my IDE warning:
```
This custom view should extend android.support.v7.widget.AppCompatImageView
instead.
In order to support features such as tinting, the appcompat library will
automatically load special appcompat replacements for the builtin widgets.
However, this does not work for your custom views.
Instead of extending the android.widget classes directly, you should instead
extend one of the delegate classes in android.support.v7.widget.AppCompat.
```
Seems reasonable and I don't see any documentation telling me not to. :)
MozReview-Commit-ID: H60bYGVgTIT
--HG--
extra : rebase_source : 68d193dcee21a53d1378669065a359504374fa72
This patch doesn't actually make us detect architectures better, though
I think our detection works well enough already. The patch does make us
always use SUPPORTED_ABIS if available instead of CPU_ABI, which is
deprecated.
MozReview-Commit-ID: IAVKLY407XE
We used to mask exceptions on shutdown due to calling System.exit for
shutting down. Now we simply kill the process, so there's no need to
mask exceptions anymore.
MozReview-Commit-ID: JtjmgXGGfvM
Our home panel context menu is shared by classic top sites, history and bookmark panels.
For acitivty stream, we've added a new context menu, and a new type of pins. However,
old context menu is still used for history and bookmarks. New style of pins allows for
items to be pinned from those panels to activity stream. This requires having both "classic"
pin buttons for old Top Sites panel, as well as the new AS Pin button.
However, initial implementation forgot to disable the new AS Pin button for the classic
Top Sites panel context menu. This caused two "pin site" menu items to appear, and the
AS one would crash the browser if it's interacted with.
We'll be unifying context menus at some point, and removing the old Top Sites code,
and so this simple patch should be sufficient.
MozReview-Commit-ID: 3cxVTv6QP8L
--HG--
extra : rebase_source : 967ad0512f7362286218cb038ce237c9e5c59aa8
The size of smart folder icon should be identical to favicon in TwoLinePageRow.
Also change scaleType from 'center' to 'centerInside' to prevent icon cropped.
MozReview-Commit-ID: 62vazt7EW4B
--HG--
extra : rebase_source : 3e2acfe3eea087a2a201dbf2bf47e6981380c7b8
Resources don't be used in Photon should be removed to prevent lint error.
MozReview-Commit-ID: IKjeeM7NecP
--HG--
extra : rebase_source : 9d5a94eaf9f698fa311745b99780418665bb6615