Commit graph

178 commits

Author SHA1 Message Date
Mugurell
5a022dcfa7 [components] For https://github.com/mozilla-mobile/android-components/issues/9101 - Show BrowserMenu at the right location on Android <=23
Have the menu placed exactly above the anchor.
2020-12-07 09:37:19 +00:00
Sebastian Kaspari
60c4cf4b2a [components] Update AndroidX dependencies. 2020-12-02 12:17:31 +00:00
Mozilla L10n Automation Bot
f2ea2e579a [components] Import l10n. 2020-11-16 00:17:46 +00:00
Christian Sadilek
b69eec6b77 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8867: Correctly handle PageAction enabled state 2020-11-04 17:36:29 +00:00
Mozilla L10n Automation Bot
1b28c11a02 [components] Import l10n. 2020-11-04 00:21:39 +00:00
Mozilla L10n Automation Bot
665146892b [components] Import l10n. 2020-10-31 00:21:41 +00:00
Tiger Oakes
b1a7210c5b [components] For https://github.com/mozilla-mobile/android-components/issues/7833: Generate concept-menu items for addons 2020-10-20 17:30:59 +00:00
mcarare
be0274fb71 [components] For https://github.com/mozilla-mobile/android-components/issues/8593: Allow extensions to be moved to main browser menu. 2020-10-15 17:57:24 +00:00
Mozilla L10n Automation Bot
50454aa9ac [components] Import l10n. 2020-10-11 00:17:15 +00:00
Mozilla L10n Automation Bot
35c8de4ab5 [components] Import l10n. 2020-10-05 00:29:08 +00:00
Mozilla L10n Automation Bot
51662a3fe3 [components] Import l10n. 2020-10-04 00:25:33 +00:00
Mozilla L10n Automation Bot
7286b82036 [components] Import l10n. 2020-09-30 10:13:19 +00:00
Tiger Oakes
a035a49d2c [components] For https://github.com/mozilla-mobile/android-components/issues/7833: Introduce async drawable menu item 2020-09-29 02:51:25 +00:00
Mozilla L10n Automation Bot
b427b25d68 [components] Import l10n. 2020-09-25 00:22:10 +00:00
Mozilla L10n Automation Bot
dbb6c1e9e1 [components] Import l10n. 2020-09-22 09:28:45 +00:00
Mozilla L10n Automation Bot
bd3ac9a8dd [components] Import l10n. 2020-09-14 00:08:17 +00:00
Mozilla L10n Automation Bot
ad197c4761 [components] Import l10n. 2020-09-10 13:02:00 +02:00
Mozilla L10n Automation Bot
f67c8d27e1 [components] Import l10n. 2020-09-09 00:05:30 +00:00
Mozilla L10n Automation Bot
29070805dd [components] Import l10n. 2020-08-27 00:08:31 +00:00
MozLando
9466111420 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8184
8184: 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-08-25 16:25:20 +00:00
mcarare
4fe34a5f99 [components] For https://github.com/mozilla-mobile/android-components/issues/8223: Fix compound drawable position for RTL. 2020-08-25 14:07:21 +03:00
Mozilla L10n Automation Bot
c325d0c9e4 [components] Import l10n. 2020-08-25 00:01:46 +00:00
Tiger Oakes
f9fee46f63 [components] Add changelog 2020-08-21 11:15:41 -07:00
Tiger Oakes
0cc4b4deab [components] Add MenuStyle support to menu1 2020-08-21 11:15:21 -07:00
MozLando
1d6efe3367 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8061
8061: For https://github.com/mozilla-mobile/android-components/issues/8060 - a11y - `BrowserMenuImageSwitch` highlights the entire row  r=NotWoods a=BranescuMihai




Co-authored-by: Mihai Branescu <branescu.mihai@gmail.com>
2020-08-21 11:23:51 +00:00
MozLando
cc25071649 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8128
8128: Import strings from android-l10n. r=Amejia481 a=mozilla-l10n-automation-bot

n/t

Co-authored-by: Mozilla L10n Automation Bot <release+l10n-automation-bot@mozilla.com>
2020-08-20 17:34:55 +00:00
MozLando
9f89180e9a [components] Merge https://github.com/mozilla-mobile/android-components/pull/8055
8055: For https://github.com/mozilla-mobile/android-components/issues/8054 - Unify addons icons design with the one for favicons r=Amejia481,brampitoyo a=Mugurell

This is a breaking change, specifying a different background is not possible
anymore.

Will use the same vector glyph with inherent padding as default addons icon.



Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
2020-08-20 11:48:26 +00:00
Mozilla L10n Automation Bot
d494cb50c2 [components] Import l10n. 2020-08-20 00:09:22 +00:00
Mugurell
43f6a55830 [components] For https://github.com/mozilla-mobile/android-components/issues/8054 - Use the same vector glyph as addons icon.
It is a vector glyph with inherent padding and will be the only drawable to be
used as addons icon.

It will replace the "mozac_ic_addons_extensions" drawable, resource added
because we needed the addons icon used in menu items to contain padding.
2020-08-19 07:47:07 +03:00
Mihai Branescu
eefb5a9ab2 [components] For https://github.com/mozilla-mobile/android-components/issues/8060 - make BrowserMenuImageSwitch highlight the entire row for a11y
Fixed by making the switch not important for accessibility, and making the parent view forward the click event instead
2020-08-12 16:59:51 +03:00
Mozilla L10n Automation Bot
977403cc2b [components] Import l10n. 2020-08-12 00:01:49 +00:00
Mozilla L10n Automation Bot
40f12f14cd [components] Import l10n. 2020-08-11 00:12:54 +00:00
Mozilla L10n Automation Bot
6b1375f5de [components] Import l10n. 2020-08-10 00:04:27 +00:00
MozLando
b1155efa7a [components] Merge https://github.com/mozilla-mobile/android-components/pull/7838
7838: For https://github.com/mozilla-mobile/android-components/issues/7836: Refine add-ons badge design r=Amejia481 a=hakkikaancaliskan

cc @brampitoyo

https://github.com/mozilla-mobile/fenix/issues/12845#issuecomment-663272360

Colors are coming from extensions. They need to set more stylish colors.

<img src="https://user-images.githubusercontent.com/17825767/88461470-61e02e00-ceac-11ea-99a4-822e3bc05d8f.png" width="200"><img src="https://user-images.githubusercontent.com/17825767/88461472-63115b00-ceac-11ea-968e-3cee2eea8d7f.png" width="200"><img src="https://user-images.githubusercontent.com/17825767/88461474-63115b00-ceac-11ea-90a8-ba043509c1e6.png" width="200">
<!-- 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)
- [x] **Tests**: This PR includes thorough tests or an explanation of why it does not
- [x] **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: Hakkı Kaan Çalışkan <caliskanhkaan@gmail.com>
2020-08-09 14:30:43 +00:00
Hakkı Kaan Çalışkan
a1349add80 [components] For https://github.com/mozilla-mobile/android-components/issues/7836: Refine add-ons badge design 2020-08-09 17:16:14 +03:00
Mozilla L10n Automation Bot
f8ef7b6121 [components] Import l10n. 2020-08-08 00:02:51 +00:00
MozLando
e1e36da97e [components] Merge https://github.com/mozilla-mobile/android-components/pull/7947 https://github.com/mozilla-mobile/android-components/pull/7968 (part 1)
7947: Uplift some menu features to menu2 r=pocmo a=NotWoods



7968: For https://github.com/mozilla-mobile/android-components/issues/7964 - Don't set initial orientation in MediaFullscreenOrientationFeature r=jonalmeida a=Mugurell

The Store that MediaFullscreenOrientationFeature is initialized with can either
have a null activeFullscreenOrientation if media wasn't playing before or,
because we use a global Store shared by all application's components it could
have an activeFullscreenOrientation already set by another component.

We'll ignore setting the initial orientation (which may be stall) for the new
component using MediaFullscreenOrientationFeature and only act upon subsequent
media orientation changes.




Co-authored-by: Tiger Oakes <toakes@mozilla.com>
Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
2020-08-06 17:06:09 +00:00
Mozilla L10n Automation Bot
a9784f474d [components] Import l10n. 2020-08-06 00:12:53 +00:00
Tiger Oakes
aebdcef1e7 [components] Remove SimpleBrowserMenuHighlightableItem.itemType 2020-08-05 10:38:29 -07:00
Tiger Oakes
e1e5585495 [components] Uplift some menu features to menu2 2020-08-04 15:39:30 -07:00
MozLando
ce2d3e0e3b [components] Merge https://github.com/mozilla-mobile/android-components/pull/7962
7962: Closes https://github.com/mozilla-mobile/android-components/issues/7961 - Hide keyboard on menu button clicks r=NotWoods a=ekager



Co-authored-by: ekager <ekager@mozilla.com>
2020-08-04 21:21:30 +00:00
Mozilla L10n Automation Bot
5e4d6b00c2 [components] Import l10n. 2020-08-04 00:04:39 +00:00
ekager
ae22a6efda [components] Closes https://github.com/mozilla-mobile/android-components/issues/7961 - Hide keyboard on menu button clicks 2020-08-03 16:13:35 -04:00
Mozilla L10n Automation Bot
d4277f291c [components] Import l10n. 2020-08-02 00:08:29 +00:00
Tiger Oakes
4aa626125c [components] Closes https://github.com/mozilla-mobile/android-components/issues/7840: Menu is only long clickable if listener is set 2020-07-30 15:51:45 -07:00
Mozilla L10n Automation Bot
9b56156ef4 [components] Import l10n. 2020-07-29 00:06:03 +00:00
Mozilla L10n Automation Bot
072f295c1a [components] Import l10n. 2020-07-28 00:24:01 +00:00
Mozilla L10n Automation Bot
3a2564dca8 [components] Import l10n. 2020-07-27 00:10:28 +00:00
Tiger Oakes
e83cf8b1d2 [components] Create new menu2 component
browser-menu v2: A new browser menu designed to work with lib-state.

This introduces a new API using immutable data classes to represent
options. Stateful functionality like the two-state button is replaced
with swapping out data classes and submitting a new list of options.

Internally this uses a recycler view and the view holders intentionally
do not map 1:1 to data classes. This way we can use different views
based on properties instead of introducing all new classes for every
combination of properties.
2020-07-24 09:31:23 -07:00
Mozilla L10n Automation Bot
9934e0a9b2 [components] Import l10n. 2020-07-23 00:14:08 +00:00