Commit graph

353 commits

Author SHA1 Message Date
mcarare
5fd60fd902 [components] For https://github.com/mozilla-mobile/android-components/issues/6137: Set BrowserMenuCategory padding same as other items in menu 2020-03-02 13:11:19 +02:00
MozLando
252c56a7a8 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6103
6103: For https://github.com/mozilla-mobile/android-components/issues/6102 - Use app:srcCompat instead of android:src r=gabrielluong a=ekager



Co-authored-by: ekager <ekager@mozilla.com>
2020-02-27 23:32:41 +00: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
Gabriel Luong
5ca4ae1b85 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6033: Emit Facts for Web Extension Browser Menu 2020-02-26 13:54:38 -05:00
MozLando
3123137d99 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6071
6071: Closes https://github.com/mozilla-mobile/android-components/issues/6070: Mark badgeView invisible if it's null r=Amejia481 a=psymoon



Co-authored-by: Simon Chae <chaesmn@gmail.com>
2020-02-26 02:34:50 +00:00
MozLando
2d2baccee3 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6074
6074: Closes https://github.com/mozilla-mobile/android-components/issues/6073: Adds animation to showPopupWhereBestFits menu r=Amejia481 a=sblatz



Co-authored-by: Sawyer Blatz <sdblatz@gmail.com>
2020-02-25 22:16:39 +00:00
Sawyer Blatz
ab062468fb [components] Closes https://github.com/mozilla-mobile/android-components/issues/6073: Adds animation to showPopupWhereBestFits menu 2020-02-25 13:51:42 -08:00
Simon Chae
7c4ab1b7ee [components] Closes https://github.com/mozilla-mobile/android-components/issues/6070: Mark badgeView invisible if it's null 2020-02-25 11:28:34 -05:00
MozLando
e432f6f333 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6055
6055: For https://github.com/mozilla-mobile/fenix/issues/8706: Add padding to web-ext menu item badge text r=Amejia481 a=psymoon

https://github.com/mozilla-mobile/fenix/issues/8706

Co-authored-by: Simon Chae <chaesmn@gmail.com>
2020-02-25 00:58:16 +00:00
MozLando
5c6fea154b [components] Merge https://github.com/mozilla-mobile/android-components/pull/6051
6051: For https://github.com/mozilla-mobile/fenix/issues/8524 - Use SwitchCompat for BrowserMenuImageSwitch r=psymoon a=ekager



Co-authored-by: ekager <ekager@mozilla.com>
2020-02-24 23:55:19 +00:00
Simon Chae
9f0cb6db89 [components] For https://github.com/mozilla-mobile/fenix/issues/8706: Add padding to web-ext menu item badge text 2020-02-24 18:53:16 -05:00
ekager
823b00f884 [components] For https://github.com/mozilla-mobile/fenix/issues/8524 - Use SwitchCompat for BrowserMenuImageSwitch 2020-02-24 13:33:32 -08:00
Arturo Mejia
808b7aa150 [components] Remove double background from mozac_browser_menu_web_extension 2020-02-24 15:57:15 -05:00
Simon Chae
e024da5bee [components] Closes https://github.com/mozilla-mobile/android-components/issues/6004: Show web ext badge in browser menu item 2020-02-20 11:17:24 -05:00
Christian Sadilek
cc1bbaaa99 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5708: Browser/Page actions don't have stable ordering 2020-01-24 11:01:47 -05:00
Simon Chae
cd41fe6124 [components] Set web extension menu label clickable to false 2020-01-23 19:37:00 -05:00
Simon Chae
d4d7831a78 [components] For https://github.com/mozilla-mobile/android-components/issues/5572: Refactor web extension popup initialization 2020-01-23 19:36:58 -05:00
Tiger Oakes
4452fe5af8 [components] For https://github.com/mozilla-mobile/android-components/issues/5373 - Add menu candidate class 2020-01-22 19:50:04 -08:00
MozLando
66b907c26e [components] Merge https://github.com/mozilla-mobile/android-components/pull/5679 https://github.com/mozilla-mobile/android-components/pull/5683 https://github.com/mozilla-mobile/android-components/pull/5688 (part 3)
5679: Closes https://github.com/mozilla-mobile/android-components/issues/5677: Catch all known non-fatal push errors r=grigoryk a=jonalmeida

Previously, we wanted to throw on all unknown push errors so that we
were notified on them. Since this seems to be more common than
originally expected, we should just catch them and in a future version,
we should log them without crashing.

All of these push errors can be considered recoverable except
for InternalPanic.




5683: Closes https://github.com/mozilla-mobile/android-components/issues/5682: Remove failedToLaunch property from AppLinksUseCases r=NotWoods a=rocketsroger



5688: Closes https://github.com/mozilla-mobile/android-components/issues/5684: Intermittent failures in WebExtensionBrowserMenuItemTest r=Amejia481,psymoon a=csadilek



Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
Co-authored-by: Roger Yang <royang@mozilla.com>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2020-01-23 02:15:20 +00:00
Christian Sadilek
905f4f2641 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5684: Intermittent failures in WebExtensionBrowserMenuItemTest 2020-01-22 17:26:06 -05: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
MozLando
daa11d1481 [components] Merge https://github.com/mozilla-mobile/android-components/pull/5651
5651: Issue https://github.com/mozilla-mobile/android-components/issues/4470: Wire up API for page action support r=Amejia481 a=csadilek

Part 1: Bring in the engine and store API and wire it up.

Part 2 will be to add the action to our UIs (toolbar and browser menu) which we'll do separately.

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2020-01-20 22:53:46 +00:00
Christian Sadilek
70570d5ac2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/4470: Wire up API for page action support
- This is basically just a copy of our browser action API, with some
refactoring to make some types and methods generic
2020-01-20 17:41:21 -05:00
Tiger Oakes
ee5372f81b [components] For https://github.com/mozilla-mobile/fenix/issues/7506 - Expose MenuButton 2020-01-16 17:44:49 -08:00
Simon Chae
215f44237e [components] For https://github.com/mozilla-mobile/fenix/pull/7517: Update menu container style to use 16dp padding
Also allow mozac_browser_menu_web_extension to use "@style/Mozac.Browser.Menu.Item.Container"
2020-01-16 14:37:51 -05:00
Simon Chae
d057441342 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5355: Add web extension action browser-menu support 2020-01-16 10:50:50 -05:00
Eitan Isaacson
2f6b9f0331 [components] Provide full menu item count to accessibility services.
We need to count buttons inside of toolbar items, and ignore dividers.

This fixes https://github.com/mozilla-mobile/fenix/issues/2143
2020-01-09 16:02:38 -08:00
salvatorep
95b7cfdf88 [components] Added tooltips to browser toolbar images when long pressed 2019-12-31 10:05:18 +00:00
Tiger Oakes
fe50c6d630 [components] Add BrowserMenuHighlightableSwitch 2019-12-20 19:12:01 -08:00
Tiger Oakes
0fb42f90e2 [components] Add low priority menu highlight 2019-11-26 14:49:07 -08:00
mcarare
bfe614ecf1 [components] For https://github.com/mozilla-mobile/android-components/issues/3837 & https://github.com/mozilla-mobile/android-components/issues/3276: Vertically align elements in HighlightableMenuItem 2019-11-01 15:26:56 +02:00
MozLando
42ec8887ff [components] Merge https://github.com/mozilla-mobile/android-components/pull/4806
4806: For https://github.com/mozilla-mobile/android-components/issues/4804 Fix RTL issues r=Amejia481 a=mcarare



Co-authored-by: mcarare <mihai.carare.dev@gmail.com>
2019-10-22 18:34:12 +00:00
MozLando
4bd0e28e75 [components] Merge https://github.com/mozilla-mobile/android-components/pull/4748
4748: For https://github.com/mozilla-mobile/android-components/issues/4747 Added menu animations for RTL layout direction r=Amejia481 a=mcarare



Co-authored-by: mcarare <mihai.carare.dev@gmail.com>
2019-10-22 18:06:01 +00: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
mcarare
4872e38421 [components] For https://github.com/mozilla-mobile/android-components/issues/4804 Improve menu items to support RTL 2019-10-21 17:32:19 +03:00
mcarare
6c211d23e4 [components] For https://github.com/mozilla-mobile/android-components/issues/4747 Added menu animations for RTL layout direction 2019-10-16 18:13:50 +03:00
mcarare
ec89853ae2 [components] For https://github.com/mozilla-mobile/android-components/issues/4560 Added BrowserMenuCategory menu item 2019-10-16 11:03:18 +03:00
ssaqua
69ea3c04e7 [components] For https://github.com/mozilla-mobile/android-components/issues/4672: Fix background ripple of Switch in BrowserMenuImageSwitch 2019-10-11 17:02:21 +02:00
Tiger Oakes
43728082d4 [components] Fix double-focus in browser menu 2019-10-04 21:35:52 -07:00
Tiger Oakes
08dc3db810 [components] Uplift Theme.resolveAttribute from Fenix 2019-09-26 07:40:39 -07:00
Denys M
b95c932f81 [components] For https://github.com/mozilla-mobile/android-components/issues/4460. Fix detekt warning about license in project files. 2019-09-24 01:01:03 +04:00
Mihai Adrian
813d7cba13 [components] Update mozac_browser_menu_item_image_switch.xml 2019-09-18 19:45:55 +03:00
mihai-adrian
dca01ea0ea [components] For https://github.com/mozilla-mobile/android-components/issues/3715 Support adding icon to a BrowserMenuSwitch
Added BrowserMenuImageSwitch, a BrowserMenuSwitch with added icon.
No paddingEnd for switch cause it would leave to much empty space.
Added changelog entry
2019-09-16 10:34:57 +03:00
Sawyer Blatz
53f4f0144f [components] No issue: Updates HighlightableMenuItem to allow startImage 2019-08-27 19:30:26 -04:00
mihai-adrian
a271be7a99 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/4174 setting setUseCompatPadding to allow for padding on CardView
setUseCompatPadding = true adds same padding values on all platforms>21
2019-08-21 17:46:11 +03:00
Sawyer Blatz
38469fcf58 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3990: Update specs of browser menu 2019-08-13 11:36:12 +02:00
Tiger Oakes
5377ef2f1a [components] Closes https://github.com/mozilla-mobile/android-components/issues/4004 - Increase limit for LongMethod rule 2019-08-02 13:34:17 -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
Tiger Oakes
8b15550b24 [components] Replaced View.forEach with Android KTX 2019-07-23 12:29:55 -04:00
Tiger Oakes
b58e5f1e47 [components] Add helper for one-time OnGlobalLayoutListener 2019-07-15 10:10:05 -04:00
Arturo Mejia
6b2466ab7e [components] Closes https://github.com/mozilla-mobile/android-components/issues/3211: Support endOfMenuAlwaysVisible for Android 6 and below. 2019-06-26 15:10:34 -07: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
Nikit Bhandari
eda43fe989 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3509: remove redundant qualifier 2019-06-23 15:32:52 -04: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
89dd2a7983 [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-menu. 2019-06-11 12:38:45 +02:00
Arturo Mejia
f68edb1c88 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2916: Improve BrowserMenu popup orientation. 2019-06-07 14:59:50 -04:00
Tiger Oakes
035bedf336 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3032 - Add animation for browser-menu 2019-06-05 13:27:47 -07:00
Tiger Oakes
a59e0a0dfb [components] Remove overscroll effect in menu
Fixes https://github.com/mozilla-mobile/fenix/issues/1634
Normal overflow menus have no overscroll effect, and the effect here
didn't align with the edges of the menu anyways.
2019-05-28 07:14:01 -07:00
Sawyer Blatz
dd38c53128 [components] For https://github.com/mozilla-mobile/android-components/issues/3100: Adds highlightable menu item 2019-05-23 15:23:23 -07:00
Denys M
b001dcf37f [components] For https://github.com/mozilla-mobile/android-components/issues/2346. Enable kotlin warningsAsErrors for browser-menu module. 2019-05-22 09:01:24 -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
Tiger Oakes
f980fdf3c1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/169, https://github.com/mozilla-mobile/android-components/issues/170: Dynamically update items
Adds the ability to dynamically update BrowserMenuItemToolbar buttons
by updating an observer. Additionally makes the single state buttons'
disabled state controlled through a lambda, similar to the
TwoStateButton.
2019-05-21 14:55:33 -04: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
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
ekager
9cfc0c7732 [components] Close https://github.com/mozilla-mobile/android-components/issues/2201 - Adds TwoStateButton in BrowserMenuItemToolbar 2019-03-12 19:01:17 +01:00
Sawyer Blatz
d1a5af71d1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2316: Adding textSize parameter to SimpleBrowserMenuItem. 2019-03-11 14:35:01 -07:00
Emily Kager
eac37b6338 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2235 - Removes redundant BrowserMenuImageText contentDescription 2019-03-06 10:51:54 +01:00
Eitan Isaacson
972c443fe1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2236: BrowserMenuImageText's TextView should be have importantForAccessibility set to off. 2019-03-04 10:32:56 -05:00
Sawyer Blatz
cf1d18ed6d [components] Closes https://github.com/mozilla-mobile/android-components/issues/2028: Adds textColor to menu items 2019-02-26 08:23:16 -08:00
Sawyer Blatz
674e1cd49a [components] Closes https://github.com/mozilla-mobile/android-components/issues/2024: Adds theming to menu background 2019-02-22 10:57:19 -08:00
Jonathan Almeida
29dcfbff61 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1913: Make text in BrowserMenuImageText unclickable 2019-02-01 04:13:26 -05:00
Jonathan Almeida
5482f932d1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1398: Add menu items to Custom Tab Toolbar 2019-01-22 20:27:11 -05:00
Sebastian Kaspari
89b012ef0f [components] Issue https://github.com/mozilla-mobile/android-components/issues/1744:: BrowserMenu.determineMenuOrientation(): Wrap bit masking. 2019-01-18 19:05:51 +01:00
Arturo Mejia
d9b55396d7 [components] Adding sample code for menu customization to Sample Toolbar app. 2019-01-18 11:35:16 -05:00
Arturo Mejia
4eda4eb706 [components] Refactoring all common text styles in browser text menus into a Style. 2019-01-18 11:35:16 -05:00
Arturo Mejia
02123b559d [components] Closes https://github.com/mozilla-mobile/android-components/issues/1544: Added support for image and text in browser menus. 2019-01-18 11:35:16 -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
Arturo Mejia
bdb2cdbf59 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1545 - Add support for menu dividers. 2019-01-17 10:29:56 +01:00
Arturo Mejia
6f7550cbb0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1712: Added docs for customizing BrowserMenu. 2019-01-16 12:10:55 -05:00
Arturo Mejia
d65452df54 [components] Refactoring PromptsFeature 2019-01-16 10:32:29 -05:00
Sebastian Kaspari
48096d68bf [components] BrowserMenuItemToolbar: Allow overriding isVisible lambda. 2019-01-11 15:18:12 +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
Jonathan Almeida
8abe869152 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1603: Add switch menu item 2019-01-02 11:43:25 -05:00
Jonathan Almeida
778cc01c54 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1577: Request Desktop checkbox doesn't show selected state 2018-12-18 16:20:53 -05:00
ali-abdullah
89f3263d12 [components] included buildSrc in ktlint and detekt checks 2018-11-16 12:40:04 +01:00
Sebastian Kaspari
4fcc11ef9b [components] Issue https://github.com/mozilla-mobile/android-components/issues/404: Build with and target SDK 28 (+ update support libraries)
* Build with and target SDK 28.
* Use Robolectric 4.0-alpha-3.
* Update support libraries to 28.0.0.
* .travis.yml: Update platform version.
2018-11-15 18:12:42 +01:00
Sebastian Kaspari
53b3d1a71f [components] Update repository information in README files. 2018-10-25 15:37:46 +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
Sebastian Kaspari
95cbd85360 [components] Revert "Issue https://github.com/mozilla-mobile/android-components/issues/404: Build with and target SDK 28 (+ update support libraries)"
This reverts commit c5038c7fab.
2018-09-26 15:39:38 +02:00
Sebastian Kaspari
68f864a763 [components] Issue https://github.com/mozilla-mobile/android-components/issues/404: Build with and target SDK 28 (+ update support libraries)
* Build with and target SDK 28.
* Use Robolectric 4.0-alpha-3.
* Update support libraries to 28.0.0.
* .travis.yml: Update platform version.
2018-09-25 10:05:55 +02: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
be422f354a [components] Issue https://github.com/mozilla-mobile/android-components/issues/647: Desktop mode support
Closes https://github.com/mozilla-mobile/android-components/issues/647
2018-08-29 11:36:07 -04:00
Sebastian Kaspari
946410ca86 [components] Configure dependencies from buildSrc Kotlin code. 2018-08-21 11:16:21 -04: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
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
c3245edd7a [components] Issue https://github.com/mozilla-mobile/android-components/issues/85: BrowserMenuBuilder: Move item list to constructor. 2018-05-16 13:10:14 -04:00
Sebastian Kaspari
56c0b176e6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/85: Add browser menu and menu item implementations for simple items and button toolbars. 2018-05-16 13:10:14 -04:00
Sebastian Kaspari
0fa79afbf3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/85: Introduce new browser-menu component. 2018-05-16 13:10:14 -04:00