Commit graph

467 commits

Author SHA1 Message Date
Mozilla L10n Automation Bot
b35c3c0b85 [components] Import l10n. 2020-07-09 13:47:36 +00:00
Gabriel Luong
79d609d314 [components] Format mozac_browser_toolbar_displaytoolbar.xml 2020-07-03 00:36:13 -04:00
Mozilla L10n Automation Bot
31b74100ff [components] Import l10n. 2020-06-23 00:07:59 +00:00
Mozilla L10n Automation Bot
df1ccae04d [components] Import l10n. 2020-06-17 00:05:05 +00:00
Sawyer Blatz
bc0c478dfd [components] For https://github.com/mozilla-mobile/android-components/pull/7301: Fix drawable ripple issues on BrowserToolbar
Co-authored-by: pocmo <skaspari@mozilla.com>
2020-06-11 10:38:08 -07:00
MozLando
d4e84f3966 [components] Merge https://github.com/mozilla-mobile/android-components/pull/7289
7289: Closes https://github.com/mozilla-mobile/android-components/issues/7288 - Only scroll the bottom toolbar if onStartNestedScroll … r=Mugurell a=miDeb

…was invoked first




Co-authored-by: Michael <michael.debertol@gmail.com>
2020-06-09 15:44:13 +00:00
Mozilla L10n Automation Bot
ef5a17643e [components] Import l10n. 2020-06-09 00:12:05 +00:00
Mozilla L10n Automation Bot
00d8f2d02f [components] Import l10n. 2020-06-08 00:04:09 +00:00
Michael
89ad435b50 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7288 - Only scroll the bottom toolbar if onStartNestedScroll was invoked first 2020-06-07 22:16:41 +02:00
Mozilla L10n Automation Bot
dcefc358fc [components] Import l10n. 2020-06-04 00:07:24 +00:00
Mozilla L10n Automation Bot
2f593e567c [components] Import l10n. 2020-06-03 00:04:53 +00:00
MozLando
9d7c807693 [components] Merge https://github.com/mozilla-mobile/android-components/pull/7102
7102: Make sure the bottom toolbar is never stuck invisible r=Mugurell a=miDeb

Closes https://github.com/mozilla-mobile/android-components/issues/7101. This is my attempt to solve this issue. Essentially, if the user is scrolling upwards, but the toolbar is not being scrolled and not already showing or animating up, just forceExpand it.



Co-authored-by: Michael <michael.debertol@gmail.com>
2020-05-29 15:47:52 +00:00
Mozilla L10n Automation Bot
f01eb9f0b5 [components] Import l10n. 2020-05-27 00:04:26 +00:00
Michael
00fea49b54 [components] Make sure the bottom toolbar is never stuck invisible 2020-05-25 22:42:58 +02:00
Christian Sadilek
87f9565d97 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5249: Long URI in the address bar will hang the UI 2020-05-19 17:57:01 -04:00
Sawyer Blatz
97b786528c [components] Makes updateUrl on EditToolbar public 2020-05-14 13:15:46 -07:00
Mugurell
fef084561d [components] For https://github.com/mozilla-mobile/android-components/issues/6978 - Catch reflection exceptions in BrowserGestureDetector
Although the fields BrowserGestureDetector want to modify through reflection
should be a stable part of the Android framework it was seen that on some
devices they do not exist.
Nothing more we can do in these cases than just prevent the reflection
exceptions bubbling up and potentially crash client apps.
2020-05-14 16:08:20 +03:00
Mugurell
70e4282ec9 [components] For https://github.com/mozilla-mobile/android-components/issues/2930 - Different BrowserToolbar behaviors depending on gestures
We'll now have a more in-depth understanding of user's gestures based on which
we can trigger different BrowserToolbar behaviors depending on if the user is
scrolling or zooming.

The ConstraintLayout parent will still inform us about when the scroll begins
and when the scroll ends but then actually incrementally updating the toolbar's
translation will be done in response to GestureDetector callbacks.
This also allows us to easily differentiate between horizontal and vertical
scrolls and only react for the latter.

If the user's gestures as inferred as zoom gestures (multi-finger scale or
quick-scale) the toolbar should not be animated.
This scenario is though affected by the fact that normally scroll gestures have
a much higher sensitivity (a 1 pixel movement is enough for a gesture to be
considered a scroll gesture) and so it is possible that even in the case of a
desired zoom gesture the scroll callbacks will be fired first.
When the gesture is identified as a zoom gesture we will immediately snap the
toolbar up/down but there might be a minor visual glitch because of this.
In an effort to reduce such races between scroll and zoom gestures I've lowered
the sensitivity of the ScaleDetector, this having the other effect that
multi-finger scrolls must now be more precise. Pinching while zooming will now
more often mean a zoom gesture and not animate the toolbar.
2020-05-12 13:34:17 +03:00
MozLando
6d2dac8df1 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6860
6860: For https://github.com/mozilla-mobile/android-components/issues/6859 - Fix Clear button not showing when entering Search fragment r=rocketsroger a=codrut-topliceanu



Co-authored-by: codrut.topliceanu <codrut.topliceanu@softvision.ro>
2020-05-05 14:26:51 +00:00
codrut.topliceanu
4151ec662e [components] For https://github.com/mozilla-mobile/android-components/issues/6859 - Fix Clear button not showing when entering Search fragment 2020-05-05 11:48:38 +03:00
Mozilla L10n Automation Bot
57a8dc1ee4 [components] Import l10n. 2020-05-05 00:05:21 +00:00
Mozilla L10n Automation Bot
aaf0da526d [components] Import l10n. 2020-05-01 00:00:49 +00:00
Jonathan Almeida
b86fa6dfb5 [components] Close https://github.com/mozilla-mobile/android-components/issues/6601: Update targetSdkVersion to 29 2020-04-28 03:16:54 -04:00
codrut.topliceanu
515737581b [components] For https://github.com/mozilla-mobile/android-components/issues/6751 - Disable autocompleting URLs when entering editmode in BrowserToolbar 2020-04-23 13:39:24 +03:00
Sawyer Blatz
3c5621643d [components] For https://github.com/mozilla-mobile/android-components/issues/6548: Fixes forceExpand animation being canceled 2020-04-13 08:41:28 -07:00
Sawyer Blatz
d7aa10c166 [components] For https://github.com/mozilla-mobile/android-components/issues/6548: Force expand toolbar if touch unhandled 2020-04-07 11:21:48 -07:00
MozLando
c3efd8521d [components] Merge https://github.com/mozilla-mobile/android-components/pull/6476
6476: Import strings from android-l10n. r=psymoon a=mozilla-l10n-automation-bot

n/t

Co-authored-by: Mozilla L10n Automation Bot <release+l10n-automation-bot@mozilla.com>
2020-04-02 14:39:51 +00:00
Mozilla L10n Automation Bot
0d62c16636 [components] Import l10n. 2020-04-02 00:03:31 +00:00
Mugurell
28fa5298dd [components] For https://github.com/mozilla-mobile/android-components/issues/3182 - Separate behaviours depending on user's MotionEvents
There are currently 3 Views interested in handling user's MotionEvents:
- GeckoView which renders web content
- SwipeRefreshLayout which handles pull down to refresh
- BrowserToolbar which can be dynamically hidden

Each of them have different behaviours based on different conditions so I
- removed the coupling of BrowserToolbar and Geckoview from `NestedGeckoView`.
It's `onTouchEventForResult` will now only set behaviour for GeckoView.
- created a new EngineView enum to expose the `PanZoomController` possible
result of how a specific user touch was handled to any components that have a
reference to an instance of EngineView without the need to have
`concept-engine` as a dependency.
- implemented specific behaviour in `SwipeRefreshFeature` for the pull down to
refresh functionality and in the `BrowserToolbarBottomBehavior` for the dynamic
navigation bar functionality.

Mapped PanZoomController's INPUT_RESULT to a new enum in order to not enforce
the need of including geckoview as a dependency in all components interested in
how a user's `MotionEvent` was handled and also because webview doesn't expose
such values so we needed a wrapper for it's handled or not boolean return.
2020-04-01 17:39:24 +03:00
Mozilla L10n Automation Bot
5e0b6ae930 [components] Import l10n. 2020-03-31 00:01:20 +00:00
Sawyer Blatz
08d9934e58 [components] For https://github.com/mozilla-mobile/android-components/issues/6048: Adds forceExpand to BottomBrowserToolbarBehavior 2020-03-27 15:14:05 -07:00
Mozilla L10n Automation Bot
0eacbeb754 [components] Import l10n. 2020-03-23 00:05:11 +00:00
MozLando
512990519f [components] Merge https://github.com/mozilla-mobile/android-components/pull/6232
6232: For https://github.com/mozilla-mobile/android-components/issues/6324 Allow customization of display url in toolbar r=csadilek a=kglazko



Co-authored-by: Kate Glazko <katglazko@gmail.com>
2020-03-19 22:27:05 +00:00
Kate Glazko
ff29354b85 [components] For https://github.com/mozilla-mobile/android-components/issues/6324 Allow customization of display url in toolbar 2020-03-19 15:18:40 -07:00
Mozilla L10n Automation Bot
639baa7eeb [components] Import l10n. 2020-03-17 14:44:12 +00:00
Mozilla L10n Automation Bot
c64f76d84a [components] Import l10n. 2020-03-06 00:25:11 +00:00
MozLando
125a051706 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6056
6056: Import strings from android-l10n. r=jonalmeida a=mozilla-l10n-automation-bot

n/t

Co-authored-by: Mozilla L10n Automation Bot <release+l10n-automation-bot@mozilla.com>
2020-03-04 16:17:14 +00:00
MozLando
6478f087c3 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6141
6141: Feature/https://github.com/mozilla-mobile/android-components/issues/6140 add toolbar menu dismiss setter r=Amejia481 a=BranescuMihai



Co-authored-by: Mihai Branescu <branescu.mihai@gmail.com>
2020-03-04 11:43:15 +00:00
Mozilla L10n Automation Bot
177b318814 [components] Import l10n. 2020-03-04 00:03:47 +00:00
Mihai Branescu
728edf019f [components] For https://github.com/mozilla-mobile/android-components/issues/6140 - added unit tests for the dismiss action setter 2020-03-03 11:00:31 +02:00
Mihai Branescu
2c504cb4f9 [components] For https://github.com/mozilla-mobile/android-components/issues/6140 - added setter for menu dismiss action 2020-03-03 11:00:31 +02:00
Christian Sadilek
3b1c7e2d1d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1912: Call speculativeConnect from toolbar and awesomebar 2020-03-02 16:13:30 -05:00
ekager
572b102758 [components] For https://github.com/mozilla-mobile/android-components/issues/6102 - Use app:srcCompat instead of android:src 2020-02-27 10:44:39 -08:00
Mozilla L10n Automation Bot
64d8390123 [components] Import l10n. 2020-02-24 00:04:07 +00:00
Mozilla L10n Automation Bot
d9d2a27483 [components] Import l10n. 2020-02-21 00:04:28 +00:00
Mihai Branescu
0f8a57b1b9 [components] For https://github.com/mozilla-mobile/android-components/issues/4907 - added margin gone END constraint for the url view
This change takes into account all four possible scenarios:
Legend:
X button = X
ActionContainer = A
UrlView = U

1. (X GONE) (A GONE) <- 8dp -> (U)
2. (X GONE) (A) (U)
3. (X) (A) (U)
4. (X) (A GONE) (U)

So basically, this adds 8dp only when both views in it's anchoring chain
are GONE
2020-02-19 12:28:23 +02:00
Mozilla L10n Automation Bot
8d4b0c5d27 [components] Import l10n. 2020-02-07 00:05:20 +00:00
Mozilla L10n Automation Bot
365b7d2721 [components] Import l10n. 2020-02-05 00:07:45 +00:00
Jayesh Solanki
6b9824b189 [components] Issue https://github.com/mozilla-mobile/android-components/issues/5729: Expose EditToolbar#setOnEditFocusChangeListener 2020-01-27 12:31:50 +01:00
Mozilla L10n Automation Bot
7783164587 [components] Import l10n. 2020-01-23 00:06:03 +00:00
Arturo Mejia
f035568ade [components] Closes https://github.com/mozilla-mobile/android-components/issues/4470 Wire up UI for page action support. 2020-01-22 11:44:19 -05:00
Mozilla L10n Automation Bot
437b0e4885 [components] Import l10n. 2020-01-20 00:03:35 +00:00
Tiger Oakes
ee5372f81b [components] For https://github.com/mozilla-mobile/fenix/issues/7506 - Expose MenuButton 2020-01-16 17:44:49 -08:00
Christian Sadilek
e5065b9271 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5588: WebExtensionToolbarFeature may display stale actions 2020-01-16 13:12:24 -05:00
Mozilla L10n Automation Bot
6ef542faa4 [components] Import l10n. 2020-01-15 00:07:29 +00:00
Mozilla L10n Automation Bot
2c4948084b [components] Import l10n. 2020-01-06 00:03:46 +00:00
Mozilla L10n Automation Bot
fdee5b8b3e [components] Import l10n. 2020-01-03 00:06:56 +00:00
Mozilla L10n Automation Bot
d591b6bfc8 [components] Import l10n. 2019-12-27 00:08:43 +00:00
Tiger Oakes
fe50c6d630 [components] Add BrowserMenuHighlightableSwitch 2019-12-20 19:12:01 -08:00
Mozilla L10n Automation Bot
933e9d5f97 [components] Import l10n. 2019-12-17 18:39:45 +00:00
Mozilla L10n Automation Bot
07e03b8d49 [components] Import l10n. 2019-12-06 00:01:30 +00:00
Arturo Mejia
3aae6c7760 [components] Merge branch 'master' into menu-highlight-revamp 2019-11-28 12:47:13 -04:00
Mozilla L10n Automation Bot
ff78dcd769 [components] Import l10n. 2019-11-27 00:05:34 +00:00
Tiger Oakes
0fb42f90e2 [components] Add low priority menu highlight 2019-11-26 14:49:07 -08:00
Mozilla L10n Automation Bot
78ec8361c7 [components] Import l10n. 2019-11-25 19:12:23 +00:00
Mozilla L10n Automation Bot
ed36333089 [components] Import l10n. 2019-11-19 10:37:18 +00:00
Mozilla L10n Automation Bot
c8b2137f48 [components] Import l10n. 2019-11-13 14:35:03 +00:00
Mozilla L10n Automation Bot
1a6bb99bc7 [components] Import l10n. 2019-11-07 01:56:54 +00:00
Sebastian Kaspari
abdfb416f1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4803: TrackingProtectionIconView: Assign individual drawables instead of using state list drawable.
Unfortunately using the state list drawable with vectors caused issues on API 21. Only going back to
individual drawables prevented the issue. On the bright side this is only an internal change and
the public API doesn't need to change.
2019-11-06 19:52:48 +01:00
Mozilla L10n Automation Bot
e1773be2f2 [components] Import l10n. 2019-11-03 17:46:29 +00:00
Mozilla L10n Automation Bot
fe5f3493a9 [components] Import l10n. 2019-10-29 11:03:34 +00:00
MozLando
633a2b8ac7 [components] Merge https://github.com/mozilla-mobile/android-components/pull/4831 https://github.com/mozilla-mobile/android-components/pull/4836 (part 2)
4831: Closes https://github.com/mozilla-mobile/android-components/issues/4830: DownloadsFeature: Consume download from state if download is started without confirmation dialog. r=Amejia481 a=pocmo



4836: For https://github.com/mozilla-mobile/android-components/issues/4765 Added content description to site security info icon  r=pocmo a=mcarare



Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
Co-authored-by: mcarare <mihai.carare.dev@gmail.com>
2019-10-28 13:31:04 +00:00
mcarare
451bb04472 [components] For https://github.com/mozilla-mobile/android-components/issues/4765 Added content description to site security info icon 2019-10-28 09:50:31 +02:00
Mozilla L10n Automation Bot
b72f283e33 [components] Import l10n. 2019-10-23 15:55:10 +00:00
Sebastian Kaspari
82e5557d68 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: CustomTabsToolbarFeature: Continue to show title if shown once (and use URL as title if needed). 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
e6a367de23 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: DisplayToolbar: Request layout after updating visibility of separator and indicators. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
d667d30a54 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: DisplayToolbar: Do not control visibility based on empty icon set. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
20cc75a53b [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Show keyboard if edit toolbar is getting focused. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
38a16d3211 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: BrowserToolbar: Fix long click handler. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
9620c851f7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: BrowserToolbar: Make edit icon visible after setting drawable. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
a022377e32 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Add changelog entry for toolbar changes. 2019-10-22 11:48:06 -04:00
Sebastian Kaspari
11c1e9cbdf [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Update unit tests. 2019-10-22 11:47:36 -04:00
Sebastian Kaspari
95febb2731 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Refactor BrowserToolbar to use ConstraintLayout for display and edit toolbars. 2019-10-22 11:47:36 -04:00
Arturo Mejia
b64e1891d0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4469: Add API for supporting WebExtension browserActions 2019-10-11 17:01:52 +02:00
MozLando
61abf386f9 [components] Merge https://github.com/mozilla-mobile/android-components/pull/4641
4641: For https://github.com/mozilla-mobile/android-components/issues/4639 Change menu button ripple to circular (unbounded) r=pocmo a=mcarare



Co-authored-by: mcarare <mihai.carare.dev@gmail.com>
2019-10-08 14:17:47 +00:00
MozLando
5aafc4d612 [components] Merge https://github.com/mozilla-mobile/android-components/pull/4643
4643: Import strings from android-l10n r=Amejia481 a=Pike

State: mozilla-l10n/android-l10n@31e0afdeb4


Co-authored-by: Axel Hecht <axel@pike.org>
2019-10-04 13:27:14 +00:00
Axel Hecht
d5db967495 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@31e0afdeb4
2019-10-04 14:48:16 +02:00
mcarare
fc80a3de3f [components] For https://github.com/mozilla-mobile/android-components/issues/4639 Change menu button ripple to circular (unbounded) 2019-10-04 13:43:48 +03:00
Petru Lingurar
c823a08ab7 [components] For https://github.com/mozilla-mobile/android-components/issues/4588 - Add test to check for dismissal of current menu 2019-10-01 18:16:51 +03:00
Petru Lingurar
d895142582 [components] Fix https://github.com/mozilla-mobile/android-components/issues/4588 - Check if menu is open before showing a new one
Added a simple check for if the menu is showing depending on which we will know
to either dismiss it or construct and show a new one.
2019-10-01 18:04:19 +03:00
Axel Hecht
efdb9a7841 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@10559d774c
2019-09-30 11:21:45 +02:00
Tiger Oakes
08dc3db810 [components] Uplift Theme.resolveAttribute from Fenix 2019-09-26 07:40:39 -07:00
Axel Hecht
600937dc4a [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@97355ffcdc
2019-09-25 13:58:27 +02:00
Sawyer Blatz
2d4c0aebdd [components] For https://github.com/mozilla-mobile/android-components/issues/4517: Updates visibility of fact items 2019-09-24 09:55:35 -07:00
Arturo Mejia
7e3e162da4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4490: Resized icons on the toolbar. 2019-09-23 14:26:29 -04:00
Arturo Mejia
5e0851bd1a [components] Closes https://github.com/mozilla-mobile/android-components/issues/4391: Adapt the color of the tracking protection icon
on custom tabs.
2019-09-19 15:36:27 -04:00
Roger Yang
78bce578b8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4425 Remove Padding When Both URL and Title is Visible In BrowserToolBar 2019-09-17 22:50:08 -04:00
Axel Hecht
1b48aa9e31 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@e78d5868c7
2019-09-13 14:42:51 +02:00
Roger Yang
a7d93def9e [components] Closes https://github.com/mozilla-mobile/android-components/issues/3213: Add Extension Function for Toolbar TextViews to Adjust Font Size to Available Height 2019-09-13 14:14:47 +02:00
Roger Yang
43ee44ecec [components] Closes https://github.com/mozilla-mobile/android-components/issues/4311: Remove Top and Bottom Padding Causing Issues with Text Alignment and Clipping 2019-09-04 10:41:46 -04:00
Axel Hecht
3b16d2b983 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@6d2fe8331a
2019-09-04 13:43:40 +02:00
Arturo Mejia
a1929b5315 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4250: Update the tracking protection icon content description
XML IDS.
2019-08-28 15:25:21 -04:00
Sawyer Blatz
53f4f0144f [components] No issue: Updates HighlightableMenuItem to allow startImage 2019-08-27 19:30:26 -04:00
Axel Hecht
46c1c9a089 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@349efdbc8f
2019-08-27 14:27:04 +02:00
MozLando
c2ebd617fd [components] Merge https://github.com/mozilla-mobile/android-components/pull/4130
4130: Closes https://github.com/mozilla-mobile/android-components/issues/3925: Adding meaningful content descriptions to tracking protection toolbar icon for different states. r=rocketsroger a=Amejia481



Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2019-08-23 19:32:43 +00:00
Axel Hecht
a893d1f5e7 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@90a28fd458
2019-08-23 12:33:53 +02:00
Maurya Talisetti
b786a535cc [components] Closes https://github.com/mozilla-mobile/android-components/issues/3033: Close toolbar menu on app exit
Currently, on exiting the app, the toolbar menu (if already open), remains open after reopening the app. This fix ensures that the menu gets closed on app exit.
2019-08-20 20:28:28 +05:30
Arturo Mejia
e0d175b71e [components] Closes https://github.com/mozilla-mobile/android-components/issues/3925: Adding meaningful content descriptions to tracking
protection toolbar icon for different states.
2019-08-14 19:26:27 -04:00
MickeyMoz
6034ef7f32 [components] Merge https://github.com/mozilla-mobile/android-components/pull/4123
4123: Closes https://github.com/mozilla-mobile/android-components/issues/3921: Adapt tracking protection icons in Custom tab toolbar. r=pocmo a=Amejia481



Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2019-08-14 17:27:56 +00:00
Arturo Mejia
72d4514eed [components] Closes https://github.com/mozilla-mobile/android-components/issues/3921: Adapt tracking protection icons in Custom tab toolbar. 2019-08-14 12:34:19 -04:00
Tiger Oakes
37ca629979 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3647 - Change HTTP icon to broken lock 2019-08-14 11:52:00 -04:00
MickeyMoz
31952f765d [components] Merge https://github.com/mozilla-mobile/android-components/pull/4075 https://github.com/mozilla-mobile/android-components/pull/4104 (part 1)
4075: Improments to tracking protection icon on the toolbar r=ekager,pocmo a=Amejia481

### Pull Request checklist
<!-- Before submitting the PR, please address each item -->
- [x] **Quality**: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
- [x] **Tests**: This PR includes thorough tests or an explanation of why it does not
- [ ] **Changelog**: This PR includes [a changelog entry](https://github.com/mozilla-mobile/android-components/blob/master/docs/changelog.md) or does not need one
- [ ] **Accessibility**: The code in this PR follows [accessibility best practices](https://github.com/mozilla-mobile/shared-docs/blob/master/android/accessibility_guide.md) or does not include any user facing features

### After merge
- [ ] **Milestone**: Make sure issues closed by this pull request are added to the [milestone](https://github.com/mozilla-mobile/android-components/milestones) of the version currently in development.
- [ ] **Breaking Changes**: If this is a breaking change, please push a draft PR on [Reference Browser](https://github.com/mozilla-mobile/reference-browser) to address the breaking issues.

4104: Issue https://github.com/mozilla-mobile/android-components/issues/4033: Abandon audio focus when media service is shutting down. r=Amejia481 a=pocmo

---
<!-- Text above this line will be added to the commit once "bors" merges this PR -->

### Pull Request checklist
<!-- Before submitting the PR, please address each item -->
- [x] **Quality**: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
- [ ] **Tests**: This PR includes thorough tests or an explanation of why it does not
- [ ] **Changelog**: This PR includes [a changelog entry](https://github.com/mozilla-mobile/android-components/blob/master/docs/changelog.md) or does not need one
- [x] **Accessibility**: The code in this PR follows [accessibility best practices](https://github.com/mozilla-mobile/shared-docs/blob/master/android/accessibility_guide.md) or does not include any user facing features

### After merge
- [ ] **Milestone**: Make sure issues closed by this pull request are added to the [milestone](https://github.com/mozilla-mobile/android-components/milestones) of the version currently in development.
- [ ] **Breaking Changes**: If this is a breaking change, please push a draft PR on [Reference Browser](https://github.com/mozilla-mobile/reference-browser) to address the breaking issues.


Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2019-08-13 14:43:36 +00:00
Tiger Oakes
5eb00aea8e [components] Issue https://github.com/mozilla-mobile/android-components/issues/3647 - Bring back siteSecurityColor 2019-08-12 12:31:34 -04:00
Axel Hecht
222835e01b [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@ab580f757c
2019-08-12 12:45:49 +02:00
Arturo Mejia
ae20cd44bd [components] Closes https://github.com/mozilla-mobile/android-components/issues/4073 https://github.com/mozilla-mobile/android-components/issues/4074: Adding an id to the tracking protection icon. 2019-08-09 10:43:09 -04:00
Arturo Mejia
03249fa5fe [components] Closes https://github.com/mozilla-mobile/android-components/issues/4073: Adding an id to the tracking protection icon. 2019-08-09 10:07:23 -04:00
Tiger Oakes
dbaca74c78 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3647 - Custom HTTP(S) icons in toolbar 2019-08-08 12:47:25 -04:00
Arturo Mejia
86eef757c0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4058: TrackingProtectionIconView#onCreateDrawableState getting
called before class properties get initialized.
2019-08-08 08:24:24 -07:00
Arturo Mejia
afcd7e659e [components] Closes https://github.com/mozilla-mobile/android-components/issues/3824: Adding the site tracking protection icon on the toolbar. 2019-08-06 20:31:10 -04:00
Sawyer Blatz
e31b10e1e1 [components] For https://github.com/mozilla-mobile/android-components/issues/3838: Adds selectableItemBackground to HighlightableMenuitem 2019-08-01 15:48:51 -07:00
Axel Hecht
e9e8e4a440 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@1412258878
2019-07-30 15:09:47 +02:00
Tiger Oakes
8b15550b24 [components] Replaced View.forEach with Android KTX 2019-07-23 12:29:55 -04:00
mihai-adrian
dbc007bc43 [components] fixes https://github.com/mozilla-mobile/android-components/issues/2760 on android-components
removed ellipsize from titleView.
added fading for titleView (same as urlView)

changed tests for DisplayToolBar and BrowserToolbar
2019-07-23 18:01:09 +02:00
mihai-adrian
b8f1d151cf [components] fixes https://github.com/mozilla-mobile/android-components/issues/2760 on android-components
removed ellipsize from titleView.
added fading for titleView (same as urlView)

added test for DisplayToolBar and BrowserToolbar
2019-07-23 18:01:09 +02:00
Axel Hecht
96447ce446 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@e521a2aab2
2019-07-17 17:37:25 +02:00
Tiger Oakes
0099bac510 [components] Turn on MagicNumber ignoreEnums rule 2019-07-15 11:41:43 -04:00
Tiger Oakes
2dfd949bcf [components] Deprecated View.isGone, View.isInvisible 2019-07-08 17:05:33 -04:00
Sawyer Blatz
9d7e388be0 [components] For https://github.com/mozilla-mobile/android-components/issues/3274: Removes setSelectAllOnFocus from EditToolbar 2019-07-04 14:44:04 +02:00
Sawyer Blatz
49928a1f33 [components] For https://github.com/mozilla-mobile/android-components/issues/3612: Adds comment to clarify solution 2019-07-03 10:55:29 +02:00
Sawyer Blatz
a19ffa9e9f [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3612: Fixes cursor issue when clearing
Co-authored-by: ekager <emilykager@gmail.com>
2019-07-02 10:07:55 +02:00
Sawyer Blatz
1c8d76e3e8 [components] For https://github.com/mozilla-mobile/android-components/issues/3274: Adds editModeFocus to BrowserToolbar 2019-07-02 09:37:43 +02:00
Tiger Oakes
622b771002 [components] Deprecated View.isVisible in favour of Android KTX 2019-07-01 10:58:49 +02:00
Tiger Oakes
e5b6e27420 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2605 - Replace pxToDp with dpToPx 2019-06-25 06:05:10 -07:00
Axel Hecht
0483091029 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@4c73402212
2019-06-24 07:39:01 -07:00
Tiger Oakes
0621656720 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3101 - Support highlighting menu button 2019-06-14 07:42:29 -07:00
Denys M
1f8fc3fa5b [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Enable unit test binary resources globally.
Excluded few modules.
2019-06-13 09:29:52 +02:00
Arturo Mejia
dc5ade9e8a [components] Closes https://github.com/mozilla-mobile/android-components/issues/3211: Added endOfMenuAlwaysVisible to BrowserMenu.show. 2019-06-11 10:09:50 -04:00
Denys M
7f70def010 [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-toolbar. 2019-06-11 12:32:05 +02:00
Sawyer Blatz
62e5c6c6e0 [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/3213: Sets max text size for browser toolbar" 2019-06-10 11:58:25 -04:00
Sawyer Blatz
0c603b1c2f [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/3213: Adds tests for max text size"
This reverts commit 9349cc1a1f.
2019-06-10 11:58:25 -04:00
Sawyer Blatz
83b8b63d2f [components] For https://github.com/mozilla-mobile/android-components/issues/3213: Adds tests for max text size 2019-06-04 10:17:38 -07:00
Sawyer Blatz
a99eaa6ed9 [components] For https://github.com/mozilla-mobile/android-components/issues/3213: Sets max text size for browser toolbar 2019-06-04 10:17:38 -07:00
Emily Kager
8ce83dd4bc [components] Closes https://github.com/mozilla-mobile/android-components/issues/3151 - Init clearView as gone 2019-05-29 14:40:25 -04:00
Denys M
93cb5fe634 [components] For https://github.com/mozilla-mobile/android-components/issues/2346. Enable kotlin warningsAsErrors for browser-toolbar module. 2019-05-22 09:01:46 -04:00
Denys M
440c6ce145 [components] For https://github.com/mozilla-mobile/android-components/issues/2346. Enable kotlin warningsAsErrors for concept-toolbar module. 2019-05-22 08:10:12 -04:00
Tiger Oakes
2efff816d1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/170: Change to invalidate pattern
Updates samples to show usage of the toolbar.invalidateActions() pattern
2019-05-21 14:55:33 -04:00
Axel Hecht
367c8dded3 [components] Import strings from android-l10n
Status: mozilla-l10n/android-l10n@68b2689e48
2019-05-06 10:15:22 -04:00
Sawyer Blatz
b9bb0edbd9 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2769: Allows disabling of autocomplete text 2019-05-02 16:54:07 +02:00
Sebastian Kaspari
5c54ec453d [components] Closes https://github.com/mozilla-mobile/android-components/issues/842: Migrate from support libraries to AndroidX. 2019-05-02 16:08:55 +02:00
Axel Hecht
0ac33c966f [components] Import strings from android-l10n
Status: mozilla-l10n/android-l10n@6f5b72b05b
2019-04-29 14:34:09 +02:00
Sawyer Blatz
bb6e56a38c [components] Closes https://github.com/mozilla-mobile/android-components/issues/2674: Adds facts to custom tabs 2019-04-16 19:51:52 +02:00
Axel Hecht
1932da6b13 [components] Import strings from android-l10n
State: mozilla-l10n/android-l10n@3d40a22318
2019-04-16 19:10:28 +02:00
Sawyer Blatz
ba56989fcd [components] Closes https://github.com/mozilla-mobile/android-components/issues/2744: Centers titleView and urlView when both are displayed 2019-04-16 18:11:29 +02:00
Axel Hecht
b2feda5856 [components] Import strings from android-l10n
Status: mozilla-l10n/android-l10n@55d144eb8e
2019-04-15 10:39:54 +02:00
Sawyer Blatz
a42211890e [components] Closes https://github.com/mozilla-mobile/android-components/issues/2615: Adds titleView to DisplayToolbar 2019-04-12 11:08:55 -04:00
Sawyer Blatz
42caaa6016 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2620: Immediately update site security icon color 2019-04-10 09:28:21 -04:00
Jeff Boek
6137216b7c [components] Fixes https://github.com/mozilla-mobile/android-components/issues/2658 - Adds the ability to long click the urlView 2019-04-09 10:11:23 -04:00
Emily Kager
628af398b0 [components] Use const in BrowserToolbar for default value 2019-04-05 11:04:28 -07:00
Emily Kager
67d30de7eb [components] Closes https://github.com/mozilla-mobile/android-components/issues/2392 - Add ability for progress bar to be displayed on top of toolbar 2019-04-05 11:04:28 -07:00
Axel Hecht
bc83b84756 [components] Import l10n from android-l10n
State: mozilla-l10n/android-l10n@932938a1ca
2019-04-05 10:44:34 +02:00
Axel Hecht
5ba3493451 [components] Import l10n from android-l10n
State: mozilla-l10n/android-l10n@7724298c8c
2019-04-04 10:56:14 +02:00
Sebastian Kaspari
3f19918008 [components] Closes https://github.com/mozilla-mobile/android-components/issues/171: BrowserToolbar: Allow setting listener on site security icon. 2019-03-29 10:25:52 -04:00
Sebastian Kaspari
0e8c94f95e [components] Closes https://github.com/mozilla-mobile/android-components/issues/175: BrowserToolbar: Add support for "edit actions". 2019-03-29 12:02:46 +01:00
Eitan Isaacson
c71f5f78e7 [components] Make loading page progress bar accessible to TalkBack. 2019-03-28 19:51:21 -04:00
Sebastian Kaspari
75a3e8b306 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2396: Update EditToolbarTest and add test for new Fact metadata. 2019-03-28 20:00:55 +01:00
Sebastian Kaspari
bd8a1d7735 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2396: BrowserToolbar: Report whether URL was autocompleted in COMMIT fact. 2019-03-28 20:00:55 +01:00
Eitan Isaacson
b8e25ff5f3 [components] Rename ToolBar entry button to Clear. 2019-03-26 19:16:24 +01:00
Axel Hecht
5c24536313 [components] Import localizations from mozilla-l10n/android-l10n 2019-03-22 16:06:44 +01:00
Sawyer Blatz
a994f48848 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2255: Adds onCancelEditing to onEditListener in BrowserToolbar 2019-03-12 14:26:06 -07:00
Gustavo Fão Valvassori
9279f297d8 [components] fixed table on the readme 2019-02-28 15:21:45 +01:00
Emily Kager
3c65e7e9b0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2147 - Turn cancel view into clear view 2019-02-26 18:15:54 -05:00
ekager
921198a777 [components] Update toolbar README with new browserToolbarCancelColor attribute 2019-02-25 15:08:55 +01:00
Emily Kager
113a4b6e9a [components] Closes https://github.com/mozilla-mobile/android-components/issues/2054 - Add EditToolbar cancel icon color attr 2019-02-25 15:08:55 +01:00
Arturo Mejia
923db73088 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2137: Adding ids for EditToolbar urlView and cancelView 2019-02-20 15:38:26 -05:00
Sebastian Kaspari
c7ac8185a7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2099: ToolbarPresenter: Display empty state. 2019-02-19 14:25:28 -05:00
Sebastian Kaspari
bea01bb3cf [components] Issue https://github.com/mozilla-mobile/android-components/issues/2109: Change "url" property from String to CharSequence. 2019-02-19 19:40:46 +01:00
Sebastian Kaspari
36bb675f9a [components] Closes https://github.com/mozilla-mobile/android-components/issues/814: browser-toolbar: Make fading edge length configurable.
Also closes https://github.com/mozilla-mobile/android-components/issues/813.
2019-02-19 18:08:52 +01:00
Sebastian Kaspari
67a1814a26 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2077: Toolbar: Allow returning Boolean from "URL commit listener" to control switching to display mode. 2019-02-15 21:02:06 +01:00
Sebastian Kaspari
98e96dee08 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2023: browser-toolbar: Allow theming of autocomplete suggestions foreground/background colors. 2019-02-15 16:25:37 +01:00
Sebastian Kaspari
96985ddc73 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2054: EditToolbar: Use CENTER scale type for cancel button in edit mode. 2019-02-15 15:37:08 +01:00
Sebastian Kaspari
34ef5e14d4 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2068: Toolbar sample app: Add configuration using private mode. 2019-02-15 08:33:12 -05:00
Sebastian Kaspari
e342239abd [components] Closes https://github.com/mozilla-mobile/android-components/issues/2068: Add private mode to toolbar. 2019-02-15 08:33:12 -05:00
Arturo Mejia
8d5ac9d298 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2072: Adding default id to toolbar urlView 2019-02-15 08:21:56 -05:00
Sebastian Kaspari
a831691024 [components] Add initial "facts" to browser-toolbar component. 2019-02-15 10:33:35 +01:00
Jonathan Almeida
d6d14f0e17 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1876: Tint all icon resources in custom tab 2019-02-11 12:48:04 -05:00
Grisha Kruglov
8260324a9b [components] Perform browser-toolbar autocompletion off the UI thread
At this point in the stack, we're not in control over what our
autocomplete providers are, what actions they'll do in order to
field our queries, etc. For example, some providers may hit the disk
and perform expensive DB queries internally. Some may even hit the
network, in theory!

In order to keep things perceptively speedy, let's run the actual work
off the main thread. This patch sets up a new pool thread to process
autocomplete requests. More than one thread is selected so that we maintain
liveliness during quick user input. Background tasks are cancelled as new
queries come in, and stale results are discarded.
2019-02-08 12:22:13 -08:00
Jonathan Almeida
e317d3d95d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1840: Add menu color attributes 2019-02-04 13:55:22 -05:00
Jonathan Almeida
0730f923c5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1840: Add toolbar security icon color attributes 2019-02-04 13:55:22 -05:00
Sebastian Kaspari
88c3b6919c [components] Closes https://github.com/mozilla-mobile/android-components/issues/1881: Add additional test case for "urlBoxView" measure and layout. 2019-02-01 13:01:28 -05:00
Sebastian Kaspari
0016e2d26e [components] Closes #https://github.com/mozilla-mobile/android-components/issues/1881: DisplayLayout: Correctly calculate URL width. 2019-01-31 11:19:58 -05:00
Arturo Mejia
a4995857f4 [components] Closes https://github.com/mozilla-mobile/android-components/pull/448 R-B:Not allowing text behind the security icon be selectable 2019-01-28 16:33:52 +01:00
Jonathan Almeida
0e83a6cf41 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1400: Handle back button presses 2019-01-21 10:27:38 -05:00
Jonathan Almeida
8b44f50eb0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1400: Add close button to custom tabs
Also makes the toolbar unclickable so it can't be switching into
edit mode, and removes all other actions.

Moved the custom tab back button bitmap checking to the feature from the
CustomTabConfig since we needed to know the DisplayMetrics for the
current screen to properly compare it to the max dp value.
2019-01-21 10:27:38 -05:00
Sebastian Kaspari
f9b741819b [components] Closes https://github.com/mozilla-mobile/android-components/issues/1744: Support "UP" and "DOWN" orientations in browser-menu (supporting bottom toolbars). 2019-01-18 17:07:50 +01:00
Sebastian Kaspari
44296da77d [components] Issue https://github.com/mozilla-mobile/android-components/issues/1604: Add BrowserToolbarBottomBehavior to be used when placing a BrowserToolbar at the bottom of a CoordinatorLayout. 2019-01-17 10:29:16 +01:00
Mitchell Hentges
8fd19cdf3a [components] Moves description to be part of project.ext 2019-01-11 10:08:32 +01:00
Mitchell Hentges
3ee4d96a84 [components] Reads componentsVersion from .buildconfig.yml 2019-01-11 10:08:32 +01:00
Sebastian Kaspari
3c56d986ec [components] Closes https://github.com/mozilla-mobile/android-components/issues/1546: Draw url box background behind site security icon. 2018-12-21 12:38:01 +01:00
Sebastian Kaspari
d254102157 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1513: browser-toolbar: Use AppCompat widgets. 2018-11-29 15:43:59 +01:00
Grisha Kruglov
128355b979 [components] Conceptualize Toolbar Autocompletion 2018-11-26 18:51:31 +01:00
Chirag Shah
b90af420ba [components] close https://github.com/mozilla-mobile/android-components/issues/1270: Updated BrowserToolbar.ToggleButton and BrowserToolbar.Button
removed redundant setPadding and  overriding methods
2018-11-23 15:07:26 -05:00
ali-abdullah
89f3263d12 [components] included buildSrc in ktlint and detekt checks 2018-11-16 12:40:04 +01:00
Jonathan Almeida
ef779e1dad [components] Closes https://github.com/mozilla-mobile/android-components/issues/177: Show site security icon when page security changes 2018-11-08 13:19:13 -05:00
Jonathan Almeida
61b9c2a1ef [components] Closes https://github.com/mozilla-mobile/android-components/issues/1127: Expose ReloadPageButton through BrowserToolbar
This code already exists in our sample app, and was moved to make it
available to apps as well.

Renamed ReloadPageAction -> TwoStateButton.

Updates changelog doc with this and the parent issue.
2018-11-06 09:35:08 +01:00
Jonathan Almeida
dec05464d5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/755: Allow toolbar actions to provide drawables 2018-11-05 15:44:19 -05:00
Jonathan Almeida
14dc760216 [components] Closes https://github.com/mozilla-mobile/android-components/issues/756: Add new BrowserToolbar APIs 2018-10-29 17:19:46 -04:00
arturomejiamarmol
6147ec21b3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/772: Allowing to pass padding to BrowserToolbar.Button,
Toolbar.ActionButton,Toolbar.ActionToggleButton, Toolbar.ActionSpace
and Toolbar.ActionImage
2018-10-26 19:45:29 +02:00
Sebastian Kaspari
eb06570064 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1109: Expose methods for switching between display/edit mode via toolbar concept component. 2018-10-25 20:28:25 +02:00
Sebastian Kaspari
53b3d1a71f [components] Update repository information in README files. 2018-10-25 15:37:46 +02:00
Arturo Mejia
f35a80367b [components] Closes https://github.com/mozilla-mobile/android-components/issues/1150: No executed tests in BrowserToolbarTest
(Test without @Test)
2018-10-24 15:18:26 -04:00
Vadim Semenov
a33bc6dbc5 [components] Replace List with Sequence in call chains
It gets rid of new ArrayList allocation inside each call in call chain
2018-10-24 11:52:48 +02:00
Vadim Semenov
0af6566645 [components] Wrap if-statements in curly brackets 2018-10-24 11:52:48 +02:00
Sebastian Kaspari
63a83a475c [components] Issue https://github.com/mozilla-mobile/android-components/issues/1109: browser-toolbar: Add listener for observing edit mode changes. 2018-10-24 11:41:13 +02:00
Sebastian Kaspari
9e17b84339 [components] Simplify build configuration. 2018-10-24 10:21:12 +02:00
Johan Lorenzo
0ca864a1bf [components] Stop Bintray. Update {group,artifact}Ids. Remove massage task 2018-10-22 14:35:51 +02:00
Wajahat Karim
ed0729232c [components] Closes https://github.com/mozilla-mobile/android-components/issues/922: Update READMEs to point to maven.mozilla.org and use new artifact names. 2018-10-03 09:20:43 +02:00
Chenxia Liu
e07320d83b [components] Closes Issue https://github.com/mozilla-mobile/android-components/issues/800 - Support inputType TEXT and URI for EditToolbar 2018-09-18 11:31:25 -04:00
Subhrajyoti Sen
ebdd6e7711 [components] Resolve https://github.com/mozilla-mobile/android-components/issues/754: refactor View.dp() as Resources.pxToDp 2018-09-17 13:40:31 -04:00
Jonathan Almeida
aa97397916 [components] Closes https://github.com/mozilla-mobile/android-components/issues/744: EditToolbar content description 2018-09-11 18:55:52 -04:00
Sebastian Kaspari
946410ca86 [components] Configure dependencies from buildSrc Kotlin code. 2018-08-21 11:16:21 -04:00
Sebastian Kaspari
b56349cba2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/622: browser-toolbar: Do not use ui-progress due to high CPU usage. 2018-08-20 10:55:07 -04:00
Sebastian Kaspari
302b280602 [components] Issue https://github.com/mozilla-mobile/android-components/issues/531: BrowserToolbar: Factor in padding when layouting children. 2018-08-01 14:15:23 +02:00
Sebastian Kaspari
e5e38f87ca [components] Closes https://github.com/mozilla-mobile/android-components/issues/395: BrowserToolbar: Layout children relative to BrowserToolbar. 2018-07-23 11:39:33 -04:00
Sebastian Kaspari
b12147275b [components] Closes https://github.com/mozilla-mobile/android-components/issues/478: DisplayToolbar: Use TransitionManager instead of LayoutTransition to animate between changes. 2018-07-23 10:39:21 -04:00
Christian Sadilek
8ca214adb8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/346: Toolbar.setOnUrlChangeListener naming unintuitive 2018-07-05 18:04:16 +02:00
Angelo Rüggeberg
4e497962b0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/291 - Unified lint warnings as error and fail on error 2018-07-03 14:29:55 -04:00
Sebastian Kaspari
faf6cc67a3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/358: browser-toolbar: Force showing keyboard when switching to edit mode. 2018-07-03 16:40:50 +02:00
Sebastian Kaspari
b787c96747 [components] Issue https://github.com/mozilla-mobile/android-components/issues/331: Add BrowserToolbar.setOnEditFocusChangeListener(). 2018-07-02 16:53:33 +02:00
Sebastian Kaspari
f7a9fdfeca [components] Issue https://github.com/mozilla-mobile/android-components/issues/297: Toolbar: Allow setting autocomplete filter. 2018-06-18 08:28:11 -07:00
Sebastian Kaspari
80340fcad1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/297: DisplayToolbar: Make URL input field focusable. 2018-06-18 08:28:11 -07:00
Sebastian Kaspari
5bc400ae0d [components] Issue https://github.com/mozilla-mobile/android-components/issues/243: Toolbar: Allow consumer to customize "hint" text. 2018-05-30 13:04:55 -04:00
Sebastian Kaspari
79fb36acb3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/213: Toolbar: Allow defining custom behavior for clicks on URL (in display mode). 2018-05-30 13:04:55 -04:00
Sebastian Kaspari
be2ddf3fcf [components] DisplayToolbarTest: Add additional test case. 2018-05-30 13:04:55 -04:00
Sebastian Kaspari
3ad0286b70 [components] Issue https://github.com/mozilla-mobile/android-components/issues/241: Toolbar: Allow consumers to define custom background for actions. 2018-05-30 13:04:55 -04:00
Sebastian Kaspari
fd16a1d614 [components] Issue https://github.com/mozilla-mobile/android-components/issues/242: Toolbar: Add a toggle button action implementation. 2018-05-30 13:04:55 -04:00
Sebastian Kaspari
a914ae38eb [components] Issue https://github.com/mozilla-mobile/android-components/issues/212: Replace "URL box" background drawable with optional view.
This solution is more flexible and allows the background to be animated and have more
custom functionality.
2018-05-30 13:04:55 -04:00
Sebastian Kaspari
1ce4b9cd47 [components] Issue https://github.com/mozilla-mobile/android-components/issues/238: DisplayToolbar: Enable layout transitions by default. 2018-05-30 13:04:55 -04:00
Sebastian Kaspari
60f0a922aa [components] DisplayToolbar: Explain layout process in comments. 2018-05-28 19:25:02 +02:00
Sebastian Kaspari
2265ff3807 [components] Add more unit tests for BrowserToolbar and DisplayToolbar. 2018-05-28 19:25:02 +02:00
Sebastian Kaspari
de6541f437 [components] Issue https://github.com/mozilla-mobile/android-components/issues/236: Toolbar: Allow actions to be shown/hidden/updated dynamically. 2018-05-28 19:25:02 +02:00
Sebastian Kaspari
d1ef639997 [components] Issue https://github.com/mozilla-mobile/android-components/issues/235: Toolbar: Allow margin between browser actions and around "URL box" to be set. 2018-05-28 19:25:02 +02:00
Sebastian Kaspari
54449cc7a7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/214: Allow "empty space" to be added as action. 2018-05-28 19:25:02 +02:00
Sebastian Kaspari
aad0a743a9 [components] Make Toolbar.Action interface generic and allow specialized implementations. 2018-05-28 19:25:02 +02:00
Sebastian Kaspari
b58dd3798a [components] Issue https://github.com/mozilla-mobile/android-components/issues/232: Add READMEs for every component and link them from the root README. 2018-05-28 17:33:12 +02:00
Sebastian Kaspari
67d170a1be [components] Toolbar: Cleanup ktlint and detekt violations. 2018-05-26 23:19:20 +02:00
Sebastian Kaspari
d7a1499ed6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/227: BrowserToolbar: Add option to define url text padding. 2018-05-26 23:19:20 +02:00
Sebastian Kaspari
8741995388 [components] Issue https://github.com/mozilla-mobile/android-components/issues/227: Toolbar Add option to define background to be drawn behind URL (+ page actions). 2018-05-26 23:19:20 +02:00
Sebastian Kaspari
fa84cc7fd9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/210: Add support for navigation actions to browser-toolbar. 2018-05-26 23:19:20 +02:00
Sebastian Kaspari
cc7c4691ba [components] Toolbar: Transform displayUrl() method into property. 2018-05-26 23:19:20 +02:00
Sebastian Kaspari
d5487c0346 [components] Issue https://github.com/mozilla-mobile/android-components/issues/209: Split "display" actions into "page actions" and "browser actions". 2018-05-26 23:19:20 +02:00