Commit Graph

1542 Commits

Author SHA1 Message Date
Arturo Mejia
5cce4b5f15 For #3709: Add save to PDF UI. 2022-10-05 15:33:07 -04:00
MatthewTighe
521f1485e6 For #27127: do not display wallpaper onboarding in private browsing mode 2022-09-29 20:24:55 +00:00
Alexandru2909
19685170de For #26424 - Handle special legacy wallpaper cases 2022-09-28 06:02:12 +00:00
MatthewTighe
5811b06679 For #27055: handle legacy wallpaper naming case 2022-09-22 21:42:44 +00:00
Gabriel Luong
444f663143 For #27026 - Use the wallpaper adapted text color for the Collections placeholder 2022-09-22 20:07:02 +00:00
Roger Yang
bc1cfb88e8 Revert "For #11404 - Create open all function"
This reverts commit 9cf42cb7d9.
2022-09-21 23:11:23 +00:00
Roger Yang
dff4c31606 Revert "For #11404 - Add 'Open all in private tabs' option as requested."
This reverts commit fe16a81c1d.
2022-09-21 23:11:23 +00:00
Roger Yang
cfa376e5d2 Revert "For #11404 - Create alert message when a lot of tabs are to be opened."
This reverts commit c75e331a30.
2022-09-21 23:11:23 +00:00
Mugurell
7b5ba840ab For #26644 - Apply the wallpaper provided text color to the Fenix logo
And to the private mode switcher.
2022-09-21 13:03:55 +00:00
MatthewTighe
414c569e86 For #27055: check whether applied wallpaper name is blank 2022-09-20 22:12:45 +00:00
MatthewTighe
c6af07dc8c Closes #26997: convert v1 wallpapers into collection group 2022-09-19 19:24:27 +00:00
Pg
c75e331a30 For #11404 - Create alert message when a lot of tabs are to be opened.
Current threshold is 15.
2022-09-19 14:25:16 -04:00
Pg
fe16a81c1d For #11404 - Add 'Open all in private tabs' option as requested.
https://github.com/mozilla-mobile/fenix/pull/21212#discussion_r739172674

- Add option is tree dot menu
- Edit folder opening to be aware of browsing mode
- Add metrics
- Add unit tests for 'Open all in private tabs'
- Add Android tests for open all in private.
2022-09-19 14:25:16 -04:00
Pg
9cf42cb7d9 For #11404 - Create open all function
- Create element to be displayed

- Update the interface and bind in the view holder
Set the filter to limit this action to FOLDER.

- Create core function
Main logic is done on the controller (has it should be done). The whole
process is done in one coroutine to be non-blocking as many
(sub)folders & links can be present. If folder is empty, a toast is
displayed. Else iterate on items. When item is:
- a FOLDER -> restart process (without toast) on the folder
- a ITEM -> open it
- a SEPARATOR -> do nothing
Once finished, show the tabs tray.

Toast message is defined in fragment to have access to context.

- Create androidTest for openAllInTabs
- Create tests for handleBookmarkFolderOpening
- Display 'open all' options only if folder has at least on child:
A coroutine and suspended functions have to be used, since `getTree`
is async.
2022-09-19 14:25:16 -04:00
mike a
4972b70018 Closes #26995: add sorting of wallpapers on wallpapers onboarding tool 2022-09-15 21:46:02 +00:00
mike a
cc30e3dc5a Closes #26971: fix wallpaper onboarding display condition 2022-09-15 05:56:57 +00:00
Mugurell
d987afd23a For #26424 - Add contrasting text color for migrated Turning Red Wallpapers 2022-09-15 03:19:02 +00:00
Alexandru2909
817827997f For #26424 - Create wallpaper file migration helper 2022-09-15 03:19:02 +00:00
mike a
9cb441a6ca Closes #26215: add telemetry events for wallpaper onboarding dialog 2022-09-14 21:27:26 +00:00
sarah541
805fb0ff60 For #26908 - Update wallpapers settings page design 2022-09-14 19:45:38 +00:00
Jan-Erik Rediger
29e871086b Fix naming of generated exception 2022-09-14 12:57:21 -04:00
Alexandru2909
bda817a608 For #26690 - Dismiss search dialog when opening recent synced tab dropdown menu 2022-09-14 12:49:08 +00:00
Alexandru2909
262aa16991 For #26790 - Dismiss search dialog when opening recent bookmark dropdown menu 2022-09-14 10:36:30 +00:00
Alexandru2909
b93b085085 For #26790 - Dismiss search dialog when opening recent visit dropdown menu 2022-09-14 10:36:30 +00:00
Alexandru2909
44b71bb590 For #26790 - Dismiss search dialog when opening recent tab dropdown menu
For #26790 -  recent tab
2022-09-14 10:36:30 +00:00
MatthewTighe
3ef7f959db For #26511: apply wallpapers immediately and observe updates 2022-09-13 22:40:36 +00:00
mike a
3aff74b40a Closes #26212: Download wallpapers when a thumbnail is clicked 2022-09-13 05:55:24 +00:00
Mugurell
93615438fc For #26910: Enable TCP for all modes
Unify the TCP feature with the TCP setting allowing both to be controlled
through the same Nimbus experiment.
Allow changing the default cookie policy to TCP based on the Nimbus experiment.
2022-09-12 22:54:30 +00:00
Christian Sadilek
9cae449e06 Revert "For #26511: Parallelize work for setting the wallpaper"
This reverts commit ce3a7152f9.
2022-09-11 13:26:12 -04:00
Christian Sadilek
d39759e7ea Revert "For #26511: Avoid waiting to set no wallpaper"
This reverts commit 4a88dbf1f1.
2022-09-11 13:26:12 -04:00
mcarare
ffcef5ff2e For #26844: Fix ktlint issues and remove them from baseline. 2022-09-09 16:52:09 +00:00
Mugurell
4a88dbf1f1 For #26511: Avoid waiting to set no wallpaper
This should squeeze the most performance for users who haven't set a wallpaper.
2022-09-09 13:36:09 +00:00
Mugurell
ce3a7152f9 For #26511: Parallelize work for setting the wallpaper
Split loading the bitmap from storage and actually setting it in two operations
with one that can run in parallel with onCreateView for HomeFragment and one
that can be used serially on the main thread to actually set the wallpaper.

This seems like the best compromise to ensure that everytime the homescreen is
shown it will have the wallpaper set but does affect the performance - there is
a delay in showing HomeFragment to account for waiting for the wallpaper to be
set.
In testing the new delay seems close to the one from the initial wallpapers
implementation. See more in https://github.com/mozilla-mobile/fenix/pull/26794.
2022-09-09 13:36:09 +00:00
Arturo Mejia
5358e9b878 Closes #26858: Remove unused nimbus engine-settings tabs-prioritization-enabled feature. 2022-09-08 10:41:18 -04:00
Arturo Mejia
49bef5d309 Closes #26858: Remove unused nimbus engine-settings total-cookie-protection-enabled feature. 2022-09-08 10:41:18 -04:00
mcarare
9490fdff71 For #26844: Rename CFRPopupFullscreenLayout class to conform to filename rule. 2022-09-08 12:15:01 +00:00
sarah541
adb7f7d48a For #26731 - First run onboarding updates 2022-09-07 22:36:25 +00:00
mcarare
bd354385d7 For #12725: Replace removed static "set", "get" methods of ViewTreeSavedStateRegistryOwner.
ViewTreeSavedStateRegistryOwner is retrieved/set with new extension methods.
2022-09-06 16:23:52 +00:00
sarah541
b432436859 For #26759 - Crash fix for UnsupportedOperationException 2022-09-02 03:22:22 +00:00
Gabriel Luong
c43271fc0d For #26739 - Display MR onboarding dialog to existing users as soon as the app is opened 2022-09-01 21:31:44 +00:00
Mugurell
93859d8560 For #26723 - Fix WallpapersObserver leaking a view from HomeFragment
The observer initialized with a fragment View would outlive the fragment and in
that allow for leaking the entire fragment layout.
2022-09-01 06:49:31 +00:00
Mugurell
b7f9457cc4 For #26723 - Ensure wallpapers are set on the main thread
Using Dispatchers.IO allowed the observer to react faster to wallpaper state
updates but caused issues with updating the wallpaper in fragment layout.

Using Dispatchers.Main.immediate gives us a bit slower reaction time but still
faster than Dispatchers.Main and allows us to still execute before the fragment
is visible.
2022-09-01 06:49:31 +00:00
Gabriel Luong
3507f12484 For #26717 - Only show the MR onboarding dialog for existing users 2022-08-31 22:38:48 +00:00
MatthewTighe
8a9c68c872 Closes #26211: Download wallpapers when thumbnails clicked 2022-08-31 22:09:39 +00:00
MatthewTighe
0d51d2b0f9 Closes #26214: Download wallpaper thumbnails at app startup 2022-08-31 22:09:39 +00:00
Alexandru2909
cedb777655 For #26706 - Add sponsored urls filter in BlocklistHandler 2022-08-31 13:03:38 +00:00
Alexandru2909
070bf5ac24 For #26706 - Change TopSite.containsQueryParameters as Uri extension function 2022-08-31 13:03:38 +00:00
Jonathan Almeida
40cd58132e Close #25919: Move UpdateFirstFrameDrawn to RecyclerView.onLayoutCompleted
As part of a preventitive measure for home page regression loading, we
fixed the UpdateFirstFrameDrawn call to happen after the first layout in
the main RecyclerView is completed. In addition, we also make pocket
aware of this flag so that it renders itself after the first layout.

This helps prioritize current & future features that are visible first
to render before those that are off screen.

Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2022-08-29 19:32:22 +00:00
Mugurell
ab3f6b5e4b For #26555 - Observe and update the wallpaper before HomeScreen is visible.
By using Store.observeManually in a standalone coroutine we can observe the
store and update the wallpapers even before onStart (in manual tests is right
around onStart, certainly before the other widgets shown on homescreen).

Created a new WallpapersObserver to have the functionality easier to reason
about and be easier to test.
2022-08-29 18:38:46 +00:00
MatthewTighe
853778e29a For #26511: load homescreen wallpaper in blocking coroutine 2022-08-29 17:33:13 +00:00