Commit 590cae7
SES-4433 : Handle landscape mode (#1527)
* removed portrait lock for most activities, retained for WebRtcCallActivity
* Initial landscape, compact, and flip compatibility
* Landing screen initial landscape compat with flip, tablet and phone
* QR code activity landscape
* Initial layout for Start Conversation sheet
* Added Adaptive layout helper
* Revert "Initial landscape, compact, and flip compatibility"
This reverts commit 20a5fa9.
* Use adaptive layout
* made sholdUseTwoPane private
* removed padding for back button
* GiphyActivity initial compose
* GiphyFragment compose
* GiphyFragment initial kotlin
* cleanup
* GiphyFragment to kotlin
* Cleanup
* Converted async task to coroutine
* Giphy fragment and sticket to kotlin
* Separate compose fun
* Start conversation cleanup
* cleanup
* Cleanup
* notif landscape fix
* Revert "notif landscape fix"
This reverts commit 3cc3ec0.
* initial scaling for QR in recovery password
* Updated usage of twopane into landscape check only.
* Share component for qrPanel
* Fixed overlap for 3 button navigation
* camera inset in conversation
* apply safe inset camera inset
* remove portrait mode for webrtccall
* cleanup
* Media preview insets
* Use state for giph loading
* Use state for giphyLoading
* themed content for tabs
* Removed two pane
* GiphyActivity converted to kotlin, updated compose usage
* Cleanup
* A bit of optimization for session netowork's node image
* inset for settings screen
* token page and conversation settings
* App bar search bar insets
* WebRtc rotation fix, Landscape xml
* contactAvatar webRtc adaptive
* refactor adaptiveInfo name
* State list drawable landscape
* rtc call landscape update
* Added insets and updated overlay stub
* Serializable data for bottom sheet. Fixed crashes
* Fixed landscape scroll for conversation bottomsheet
* insets for cameraXfragment
* Initial workaround for giphytabs
* cleanup
* Let activity handle the orientation change
* Fixed how web rtc looks on landscape
* allow recreation of layout for fragment. Add saveInstance check to prevent duplicate framgnet
* Simplified logic
* Added to LocalDimensions
* cleanups
* Filter thread record instead of db call
* Cleanup
* Removed auto scroll flag from setDeviceOrientation function
* Search contact action bottomsheet landscape state expanded
* convert calculation into anchor
* Narrow width use anchor, helper function to get anchor
* Safe insets for start conversation sheet
* Dynamic insets if sheet does not fill the width
* Update minimum size, fixed box constraints
* cleanup
* draw on image fix layout
* spacing fixes for editing images
* fixed constraints for color slider
* initial configuration change handling
* Revert "initial configuration change handling"
This reverts commit 8c9891d.
* Made some QR areas scrollable but fit area
* conversationv2 landscape layout
* Remove landscape hiding the rail
* Refactored dimen name
* added comments
* Fixed rotation value
* Removed landscape layout, added rotation to back arrow
* Handle onConfigureChanged for WebrtcActivity
* Cleanups
* Updated inset margine helper to fix home FAB
* Initial orientation handling for CameraXFragment
* Added CameraXActivity to replace old fragment
* Fixed insets for CameraXActivity
* Added tiny helper for bottom margin insets
* Fixed missing dimen
* SDK 36 bump
* Updated back handling for activity with fragment
* Updated back handling
* Video camera landscape adjustment
* Updated avatar sizes for portrait and landscape
* Navigator to survive config changes, collapsible footer inset
* replaced vm with retain
* Used retain for navigations, updated insets for debug and pro screens
* Fixed leftoever condition
* Updated landscape screen for manage group stuff
* ManageMembersScreen cleanup and improvements
* More cleanups
* Updated some remembers to retain
* Minor cleanup
---------
Co-authored-by: ThomasSession <thomas.r@getsession.org>1 parent 4552e98 commit 590cae7
File tree
90 files changed
+4589
-2069
lines changed- app/src/main
- java/org/thoughtcrime/securesms
- conversation/v2
- settings
- giph/ui
- compose
- groups/compose
- home
- search
- startconversation
- home
- mediasend
- media
- migration
- onboarding
- landing
- messagenotifications
- pickname
- preferences
- prosettings
- recoverypassword
- scribbles
- tokenpage
- ui
- adaptive
- components
- theme
- util
- webrtc
- res
- layout-land
- layout
- values
- gradle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
90 files changed
+4589
-2069
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
116 | | - | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
120 | 117 | | |
121 | | - | |
122 | 118 | | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | | - | |
127 | 122 | | |
128 | 123 | | |
129 | 124 | | |
130 | | - | |
131 | 125 | | |
132 | 126 | | |
133 | 127 | | |
134 | 128 | | |
135 | 129 | | |
136 | | - | |
137 | | - | |
| 130 | + | |
138 | 131 | | |
139 | 132 | | |
140 | 133 | | |
141 | | - | |
142 | 134 | | |
143 | 135 | | |
144 | 136 | | |
| |||
147 | 139 | | |
148 | 140 | | |
149 | 141 | | |
150 | | - | |
151 | 142 | | |
152 | 143 | | |
153 | | - | |
154 | | - | |
| 144 | + | |
155 | 145 | | |
156 | 146 | | |
157 | | - | |
158 | 147 | | |
159 | 148 | | |
160 | 149 | | |
161 | | - | |
162 | 150 | | |
163 | 151 | | |
164 | 152 | | |
165 | 153 | | |
166 | 154 | | |
167 | 155 | | |
168 | | - | |
169 | | - | |
| 156 | + | |
170 | 157 | | |
171 | 158 | | |
172 | | - | |
173 | | - | |
| 159 | + | |
174 | 160 | | |
175 | | - | |
176 | | - | |
| 161 | + | |
177 | 162 | | |
178 | 163 | | |
179 | | - | |
180 | | - | |
| 164 | + | |
181 | 165 | | |
182 | | - | |
183 | | - | |
| 166 | + | |
184 | 167 | | |
185 | | - | |
186 | | - | |
| 168 | + | |
187 | 169 | | |
188 | 170 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 171 | + | |
| 172 | + | |
193 | 173 | | |
194 | | - | |
195 | 174 | | |
196 | 175 | | |
197 | | - | |
198 | 176 | | |
199 | 177 | | |
200 | 178 | | |
201 | 179 | | |
202 | 180 | | |
203 | 181 | | |
204 | 182 | | |
205 | | - | |
206 | 183 | | |
207 | 184 | | |
208 | 185 | | |
| |||
254 | 231 | | |
255 | 232 | | |
256 | 233 | | |
257 | | - | |
258 | 234 | | |
259 | 235 | | |
260 | 236 | | |
| |||
264 | 240 | | |
265 | 241 | | |
266 | 242 | | |
267 | | - | |
268 | 243 | | |
269 | 244 | | |
270 | 245 | | |
| |||
281 | 256 | | |
282 | 257 | | |
283 | 258 | | |
284 | | - | |
285 | 259 | | |
286 | 260 | | |
287 | 261 | | |
288 | | - | |
289 | | - | |
290 | 262 | | |
291 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
292 | 269 | | |
293 | 270 | | |
294 | 271 | | |
| |||
317 | 294 | | |
318 | 295 | | |
319 | 296 | | |
320 | | - | |
321 | 297 | | |
322 | 298 | | |
323 | | - | |
| 299 | + | |
| 300 | + | |
324 | 301 | | |
325 | 302 | | |
326 | 303 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 150 | + | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
Lines changed: 12 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
178 | | - | |
179 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
180 | 186 | | |
181 | 187 | | |
182 | 188 | | |
| |||
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
392 | 395 | | |
393 | 396 | | |
394 | 397 | | |
395 | | - | |
396 | | - | |
397 | | - | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
398 | 401 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| 718 | + | |
| 719 | + | |
717 | 720 | | |
718 | 721 | | |
719 | 722 | | |
| |||
731 | 734 | | |
732 | 735 | | |
733 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
734 | 742 | | |
735 | 743 | | |
736 | 744 | | |
| |||
Lines changed: 57 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
| |||
312 | 322 | | |
313 | 323 | | |
314 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
315 | 334 | | |
316 | 335 | | |
317 | 336 | | |
| 337 | + | |
318 | 338 | | |
319 | | - | |
| 339 | + | |
320 | 340 | | |
321 | | - | |
| 341 | + | |
322 | 342 | | |
323 | 343 | | |
324 | 344 | | |
| |||
332 | 352 | | |
333 | 353 | | |
334 | 354 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
339 | 361 | | |
340 | | - | |
341 | | - | |
342 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
343 | 370 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
348 | 375 | | |
| 376 | + | |
349 | 377 | | |
350 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
351 | 386 | | |
352 | 387 | | |
353 | 388 | | |
| |||
361 | 396 | | |
362 | 397 | | |
363 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
364 | 405 | | |
365 | 406 | | |
366 | 407 | | |
| |||
0 commit comments