Disable edge-to-edge for Android 10 and below

This commit is contained in:
Torsten Grote
2025-06-30 12:05:09 -03:00
parent 0337108d58
commit 2f0cfc920d
2 changed files with 4 additions and 2 deletions

View File

@@ -120,7 +120,8 @@ public class AppDetailsActivity extends AppCompatActivity
fdroidApp.setSecureWindow(this);
fdroidApp.applyPureBlackBackgroundInDarkTheme(this);
EdgeToEdge.enable(this);
// Edge-to-edge has a bug in Android 10 (and lower?) where end of page is overlayed
if (Build.VERSION.SDK_INT > 29) EdgeToEdge.enable(this);
super.onCreate(savedInstanceState);
setContentView(R.layout.app_details2);

View File

@@ -125,7 +125,8 @@ public class ManageReposActivity extends AppCompatActivity implements RepoAdapte
fdroidApp.setSecureWindow(this);
fdroidApp.applyPureBlackBackgroundInDarkTheme(this);
EdgeToEdge.enable(this);
// Edge-to-edge has a bug in Android 10 (and lower?) where end of page is overlayed
if (Build.VERSION.SDK_INT > 29) EdgeToEdge.enable(this);
repoManager = FDroidApp.getRepoManager(this);
super.onCreate(savedInstanceState);