Update compileSdk and targetSdk to 36#22695
Conversation
- 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>
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>
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>
Use getLocales() and setLocales() instead of the deprecated Configuration.locale field and setLocale() method. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Generated by 🚫 Danger |
Project manifest changes for WordPressThe following changes in the --- ./build/reports/diff_manifest/WordPress/wordpressRelease/base_manifest.txt 2026-03-16 21:02:30.298339034 +0000
+++ ./build/reports/diff_manifest/WordPress/wordpressRelease/head_manifest.txt 2026-03-16 21:02:36.308353302 +0000
@@ -7,7 +7,7 @@
<uses-sdk
android:minSdkVersion="26"
- android:targetSdkVersion="35" />
+ android:targetSdkVersion="36" />
<permission
android:name="org.wordpress.android.permission.DISABLE_NOTIFICATIONS"
@@ -311,7 +311,7 @@
android:theme="@style/WordPress.ZenDesk" />
<activity
android:name="org.wordpress.android.support.SupportWebViewActivity"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge" /> <!-- empty title -->
+ android:theme="@style/WordPress.NoActionBar" /> <!-- empty title -->
<!-- Preferences activities -->
<activity
android:name="org.wordpress.android.ui.about.UnifiedAboutActivity"
@@ -376,7 +376,7 @@
<activity
android:name="org.wordpress.android.ui.comments.CommentsDetailActivity"
android:label="@string/comments"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="org.wordpress.android.ui.comments.unified.UnifiedCommentsDetailsActivity"
@@ -387,7 +387,7 @@
android:name="org.wordpress.android.ui.posts.EditPostActivity"
android:configChanges="locale|orientation|screenSize"
android:exported="false"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
@@ -844,7 +844,7 @@
<activity
android:name="org.wordpress.android.ui.reader.ReaderCommentListActivity"
android:label="@string/reader_title_comments"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="org.wordpress.android.ui.reader.NoSiteToReblogActivity"
@@ -858,7 +858,7 @@
android:theme="@style/WordPress.NoActionBar" />
<activity
android:name="org.wordpress.android.ui.reader.ReaderSubsActivity"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="stateHidden" />
<activity
android:name="org.wordpress.android.ui.reader.ReaderPhotoViewerActivity"
@@ -927,7 +927,7 @@
android:theme="@style/WordPress.NoActionBar" /> <!-- Notifications activities -->
<activity
android:name="org.wordpress.android.ui.notifications.NotificationsDetailActivity"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge" /> <!-- People Management -->
+ android:theme="@style/WordPress.NoActionBar" /> <!-- People Management -->
<activity
android:name="org.wordpress.android.ui.people.PeopleManagementActivity"
android:label="@string/users"Go to https://buildkite.com/automattic/wordpress-android/builds/25499/canvas?sid=019cf86e-7405-4d9f-a33f-036b0828a120, click on the |
Project manifest changes for WordPressThe following changes in the --- ./build/reports/diff_manifest/WordPress/jetpackRelease/base_manifest.txt 2026-03-16 21:02:24.016634929 +0000
+++ ./build/reports/diff_manifest/WordPress/jetpackRelease/head_manifest.txt 2026-03-16 21:02:30.216684192 +0000
@@ -7,7 +7,7 @@
<uses-sdk
android:minSdkVersion="26"
- android:targetSdkVersion="35" />
+ android:targetSdkVersion="36" />
<uses-permission android:name="org.wordpress.android.permission.DISABLE_NOTIFICATIONS" /> <!-- Normal permissions, access automatically granted to app -->
<uses-permission android:name="android.permission.VIBRATE" />
@@ -503,7 +503,7 @@
android:theme="@style/WordPress.ZenDesk" />
<activity
android:name="org.wordpress.android.support.SupportWebViewActivity"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge" /> <!-- empty title -->
+ android:theme="@style/WordPress.NoActionBar" /> <!-- empty title -->
<!-- Preferences activities -->
<activity
android:name="org.wordpress.android.ui.about.UnifiedAboutActivity"
@@ -568,7 +568,7 @@
<activity
android:name="org.wordpress.android.ui.comments.CommentsDetailActivity"
android:label="@string/comments"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="org.wordpress.android.ui.comments.unified.UnifiedCommentsDetailsActivity"
@@ -579,7 +579,7 @@
android:name="org.wordpress.android.ui.posts.EditPostActivity"
android:configChanges="locale|orientation|screenSize"
android:exported="false"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
@@ -869,7 +869,7 @@
<activity
android:name="org.wordpress.android.ui.reader.ReaderCommentListActivity"
android:label="@string/reader_title_comments"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="org.wordpress.android.ui.reader.NoSiteToReblogActivity"
@@ -883,7 +883,7 @@
android:theme="@style/WordPress.NoActionBar" />
<activity
android:name="org.wordpress.android.ui.reader.ReaderSubsActivity"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge"
+ android:theme="@style/WordPress.NoActionBar"
android:windowSoftInputMode="stateHidden" />
<activity
android:name="org.wordpress.android.ui.reader.ReaderPhotoViewerActivity"
@@ -952,7 +952,7 @@
android:theme="@style/WordPress.NoActionBar" /> <!-- Notifications activities -->
<activity
android:name="org.wordpress.android.ui.notifications.NotificationsDetailActivity"
- android:theme="@style/WordPress.NoActionBar.NoEdgeToEdge" /> <!-- People Management -->
+ android:theme="@style/WordPress.NoActionBar" /> <!-- People Management -->
<activity
android:name="org.wordpress.android.ui.people.PeopleManagementActivity"
android:label="@string/users"Go to https://buildkite.com/automattic/wordpress-android/builds/25499/canvas?sid=019cf86e-7408-4dc3-b9c0-61a3321e7bf5, click on the |
|
|
|
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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>
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>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #22695 +/- ##
==========================================
- Coverage 37.61% 37.60% -0.01%
==========================================
Files 2272 2273 +1
Lines 118379 118405 +26
Branches 16370 16372 +2
==========================================
Hits 44531 44531
- Misses 70196 70222 +26
Partials 3652 3652 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
adalpari
left a comment
There was a problem hiding this comment.
LGTM and I haven't found any error while testing on devices





Description
Updates
compileSdkVersionandtargetSdkVersionfrom 35 to 36 and addresses all resulting compilation errors, deprecation warnings, and behavioral changes:NoEdgeToEdgeopt-out from the manifest and addedEdgeToEdgeActivityLifecycleCallbacksto apply inset padding to third-party activities (e.g. Zendesk) that don't extendBaseAppCompatActivity.WindowInsetsCompat.Type.ime()to bothBaseAppCompatActivityandEdgeToEdgeActivityLifecycleCallbacksso the keyboard doesn't overlap editors — replacing the oldadjustResizebehavior that edge-to-edge disables.windowLightStatusBartotruein the day Zendesk style so status bar icons are visible (dark on light background) now thatstatusBarColoris ignored.Configuration.localewithConfigurationCompat.getLocales()inLocaleManager, updatedPrefMainSwitchToolbarViewandNotificationsSettingsActivityfor SDK 36 API changes.CommentDetailFragment,MediaPickerUtils, andGutenbergUtilsto use non-deprecated alternatives.Testing instructions
Build verification:
Edge-to-edge on SDK 36:
Keyboard overlap:
General regression: