Commit 5abc9db
authored
Avoid dismissing the modal after the desktop browser link is shared and update the layouts to matcth the design (duckduckgo#7782)
Task/Issue URL:
https://app.asana.com/1/137249556945/project/1211724162604201/task/1213374841796679?focus=true
### Description
Removed the logic that would dismiss the “Get Desktop Browser” modal
after the link is shared.
Updated the desktop browser promotion screen layout with improved
spacing and responsive design.
Also updated the sync "Get on Other Devices" screen layout with similar
responsive design improvements, including maximum width constraints and
updated spacing for better visual consistency.
### Steps to test this PR
_Desktop Browser Promotion_
- [ ] Verify the “Get Destkop Browser” matches the design
- [ ] Verify the share functionality doesn’t dismiss the screen
_Sync Get on Other Devices_
- [ ] Navigate to the sync "Get on Other Devices" screen
- [ ] Verify the layout matches the design
### UI changes
Get on other devices:
| Before | After |
| ------ | ----- |
| 
| 
|
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Mostly UI/layout adjustments plus removal of a share-event side
effect; low risk aside from potential UX regressions on different screen
sizes.
>
> **Overview**
> Stops the "Get Desktop Browser" promo from auto-dismissing after a
share by removing the share-event flow/handler plumbing (including
`GetDesktopBrowserShareEventHandler`, its test, and result-code usage)
while still marking the promo dismissed in
`GetDesktopBrowserShareBroadcastReceiver`.
>
> Updates the "Get Desktop Browser" and Sync "Get on Other Devices"
screens to match updated designs: wraps content in scroll views with
`fillViewport`, adjusts spacing, and adds max-width constraints via new
`600dp` dimens (`getDesktopBrowserMaxItemWidth`,
`syncOtherDevicesMaxItemWidth`) for better responsiveness.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f1641b8. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 66f5f11 commit 5abc9db
8 files changed
Lines changed: 149 additions & 275 deletions
File tree
- app/src
- main
- java/com/duckduckgo/app/desktopbrowser
- res
- layout
- values
- test/java/com/duckduckgo/app/desktopbrowser
- sync/sync-impl/src/main/res
- layout
- values
Lines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| |||
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 81 | | |
97 | 82 | | |
98 | 83 | | |
| |||
106 | 91 | | |
107 | 92 | | |
108 | 93 | | |
109 | | - | |
110 | 94 | | |
111 | 95 | | |
112 | 96 | | |
| |||
177 | 161 | | |
178 | 162 | | |
179 | 163 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 164 | | |
185 | 165 | | |
186 | 166 | | |
| |||
Lines changed: 1 addition & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | | - | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 34 | | |
49 | 35 | | |
50 | 36 | | |
51 | 37 | | |
52 | 38 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 39 | + | |
60 | 40 | | |
61 | 41 | | |
Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 98 additions & 78 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 26 | + | |
39 | 27 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
46 | 31 | | |
47 | 32 | | |
48 | | - | |
49 | | - | |
| 33 | + | |
50 | 34 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
67 | 40 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
83 | 51 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
95 | 67 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
111 | 131 | | |
112 | 132 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
Lines changed: 0 additions & 57 deletions
This file was deleted.
0 commit comments