Skip to content

Commit

Permalink
fix: Change SDK to 35 (Android 15), apply menu fix only for Android 1…
Browse files Browse the repository at this point in the history
…5 devices.
  • Loading branch information
LisoUseInAIKyrios committed Nov 26, 2024
1 parent b4dfcee commit f57fc2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions extensions/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ android {
isMinifyEnabled = true
}
}
compileSdk = 35
buildToolsVersion = "35.0.0"
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private void setPreferenceScreenToolbar(PreferenceScreen parentScreen) {
// FIXME:
// On Android 15 the text layout is not aligned the same as the parent
// screen and it looks a little off. Otherwise this works.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
rootView.setOnApplyWindowInsetsListener((v, insets) -> {
Insets statusInsets = insets.getInsets(WindowInsets.Type.statusBars());
v.setPadding(0, statusInsets.top, 0, 0);
Expand Down

0 comments on commit f57fc2c

Please sign in to comment.