Commit b7c4ddd
Update compileSdk and targetSdk to 36 (#22695)
* Update compileSdkVersion and targetSkdVersion to 36
* Fix compilation errors and deprecation warnings for SDK 36
- Fix onCheckedChanged signature: CompoundButton parameter is now
non-null in SDK 36 (PrefMainSwitchToolbarView, its interface,
and NotificationsSettingsActivity)
- Suppress deprecated announceForAccessibility() calls across 11
files (13 call sites) — replacement with live regions is a
separate effort
- Replace deprecated Locale constructors with Locale.Builder in
LocaleManager
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove NoEdgeToEdge opt-out for SDK 36 edge-to-edge enforcement
The windowOptOutEdgeToEdgeEnforcement attribute is deprecated and
ignored on SDK 36, so the NoEdgeToEdge style no longer prevents
edge-to-edge. Instead, let the 6 affected activities go through
BaseAppCompatActivity.applyInsetOffsets() by removing them from the
exclusion list, and add ActivityLifecycleCallbacks to handle insets
for Zendesk activities that don't extend BaseAppCompatActivity.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix remaining SDK 36 deprecation warnings in Java files
Suppress announceForAccessibility deprecation in CommentDetailFragment,
WPMainActivity, and MediaPickerUtils. Replace deprecated Locale
constructor with Locale.Builder in GutenbergUtils.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Replace deprecated Configuration.locale and setLocale for SDK 36
Use getLocales() and setLocales() instead of the deprecated
Configuration.locale field and setLocale() method.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix checkstyle violation: remove empty line after opening brace
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Use idiomatic Kotlin 'in' operator for activity name check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Suppress announceForAccessibility deprecation warning in test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix invisible status bar on Zendesk screens in light mode
With edge-to-edge enforced, statusBarColor is ignored and the
status bar is transparent. Set windowLightStatusBar to true in
the day Zendesk style so icons are dark on the light background.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Handle IME insets to prevent keyboard overlapping editors
With edge-to-edge enforced, adjustResize no longer shrinks the
content area automatically. Include ime() in the inset types so
the decorView padding accounts for the keyboard height.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Handle IME insets for Zendesk activities to prevent keyboard overlap
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add clarifying comments from code review feedback
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8265755 commit b7c4ddd
27 files changed
Lines changed: 120 additions & 49 deletions
File tree
- WordPress/src
- main
- java/org/wordpress/android
- ui
- comments
- main
- emailverificationbanner
- prefs/notifications
- reader
- sitecreation
- domains
- previews
- progress
- stats/refresh/lists/sections/viewholders
- util
- res
- values-night
- values
- test/java/org/wordpress/android/util
- libs/editor/src/main/java/org/wordpress/android/editor/gutenberg
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
| 872 | + | |
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
| 970 | + | |
971 | 971 | | |
972 | 972 | | |
973 | 973 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
18 | 29 | | |
19 | 30 | | |
20 | 31 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
1486 | | - | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
1487 | 1488 | | |
1488 | 1489 | | |
1489 | 1490 | | |
| |||
1667 | 1668 | | |
1668 | 1669 | | |
1669 | 1670 | | |
| 1671 | + | |
1670 | 1672 | | |
1671 | 1673 | | |
1672 | 1674 | | |
| |||
Lines changed: 1 addition & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 1 | | |
7 | 2 | | |
8 | 3 | | |
| |||
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
18 | | - | |
19 | 12 | | |
20 | 13 | | |
21 | 14 | | |
| |||
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
30 | | - | |
31 | | - | |
32 | 23 | | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
36 | 27 | | |
37 | 28 | | |
38 | | - | |
39 | 29 | | |
40 | | - | |
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
| |||
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
| 57 | + | |
68 | 58 | | |
69 | 59 | | |
70 | 60 | | |
| |||
110 | 100 | | |
111 | 101 | | |
112 | 102 | | |
113 | | - | |
114 | 103 | | |
115 | 104 | | |
116 | 105 | | |
117 | 106 | | |
118 | 107 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 108 | | |
128 | 109 | | |
129 | 110 | | |
| |||
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| 1143 | + | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | 1146 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
0 commit comments