onSizeChanged should only be called when the size actually changes. However,
I did notice weird behavior in the debugger where `formatImage` appeared to be
called twice from onSizeChanged, however, I was unable to reproduce this
behavior with log statements.
MozReview-Commit-ID: A5amGqTxv55
These are already present in View.getHeight/Width and:
1) Having duplicated values can lead to bugs
2) Having them around makes it harder to see what's important in this code.
MozReview-Commit-ID: 7IvipoJXmF7
It's helpful to be able to map a cursor to a list, conditionally processing every
cursor entry. This patch considers 'null' result from func to be a "ignore this cursor
entry" sentinel. We could achieve the same via map->filter, but that would require
multiple iterations over a list.
MozReview-Commit-ID: Ixmzyhd2RqM
We temporarily insert the image in question into the MediaStore in order to display the corresponding chooser, which requires the WRITE_EXTERNAL_STORAGE permission.
MozReview-Commit-ID: FAf9tE5h3c8
In Photon few images(most of them are related to site identity) are renamed to be more formalized.
These images in Australis need to be renamed as well to make resources easy to maintain.
The mapping between old/new name is below:
OLD NEW
---- ----
reader ic_readermode
reader_active ic_readermode_on
close_edit_mode_dark ic_cancel_nm
close_edit_mode_light ic_cancel_pm
ab_menu ic_overflow
ab_mic ic_mic
ab_qrcode ic_qrcode
lock_secure ic_lock
warning_minor ic_warning_minor
warning_major ic_warning_major
lock_disabled ic_lock_disabled
lock_inactive ic_lock_inactive
shield_enabled ic_shield_enabled
shield_disabled ic_shield_disabled
search_icon_inactive ic_search_icon
MozReview-Commit-ID: FivDIHiqe1w
We draw curve for Toolbar only in Australis flavor.
Also change resource naming for highlight color to be consistent with
Phton flavor.
MozReview-Commit-ID: E7cFuJs3r6h
PageAction are views which be added to awesomebar dynamically, for
example "Reader mode icon".
Now let it becomes ThemedImageButton to support Private mode.
MozReview-Commit-ID: HQXgJWL19Oz
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.
MozReview-Commit-ID: 1ejwk3OfUex
In Photon flavor, only one view for menu button is enough. This patch is to
merge menu and menu-icon into one ThemedImageButton.
MozReview-Commit-ID: KyjsriirmbA
The new, preferred solution for displaying additional web content outside of our normal tab infrastructure and UI is to use a separate GeckoView instance. Therefore, the support for different having additional "tab" types that aren't displayed in the normal UI, as well as for multiple GeckoApp instances displaying different tabs is no longer needed and can be removed.
MozReview-Commit-ID: FNx0gJIKybr
The crash reason is that our package name [1] is not the same as the name from
packageManager's getPackagesForUid(uid) [2].
Not sure what causes it and how it happen, but we can catch this exception first
to avoid the crash.
[1] https://goo.gl/ezJvWB
[2] https://goo.gl/6Q8b6M
MozReview-Commit-ID: HrTfubxHNSk
This patch introduces a notion of "changed" count during bookmark deletions, and firms up
our deletion logic to ensure we're counting affected records correctly.
Changes are mostly clearer comments describing what's going on, as well tests to ensure
we're doing the right thing.
One logical change is that this patch drops an additional call to updateBookmarks. AFAIK,
that call is unnecessary. It doesn't achieve its stated goal of writing first (it performs
a select first), and since we're doing a deletion, the "bump timestamps of an old parent
in case parent changed" logic is unused).
MozReview-Commit-ID: 9B1FW9pgsf1
We draw curve for Toolbar only in Australis flavor.
Also change resource naming for highlight color to be consistent with
Phton flavor.
MozReview-Commit-ID: E7cFuJs3r6h
PageAction are views which be added to awesomebar dynamically, for
example "Reader mode icon".
Now let it becomes ThemedImageButton to support Private mode.
MozReview-Commit-ID: HQXgJWL19Oz
In Photon, the reader-mode icon should support private mode. Therefore
we rename resource in Australis to *ic_readermode* for consistent.
MozReview-Commit-ID: 1ejwk3OfUex
In Photon flavor, only one view for menu button is enough. This patch is to
merge menu and menu-icon into one ThemedImageButton.
MozReview-Commit-ID: KyjsriirmbA