Skip to content

Commit 6ee22b7

Browse files
Fix: Address Play Store warnings for edge-to-edge implementation
Modifies the enableEdgeToEdge() call in MainActivity to explicitly set the navigationBarStyle to transparent. This is intended to resolve Play Store warnings about the deprecated setNavigationBarColor API. The app already targets SDK 35 and uses enableEdgeToEdge(), which should address the general warning about edge-to-edge display and the LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES warning by adhering to modern Android best practices. Further review of the deprecated accompanist-systemuicontroller library is recommended as a follow-up action.
1 parent 84ded38 commit 6ee22b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • android/src/main/java/com/inspiredandroid/linuxcommandbibliotheca

android/src/main/java/com/inspiredandroid/linuxcommandbibliotheca/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MainActivity : AppCompatActivity() {
6565
private val dataManager by inject<DataManager>()
6666

6767
override fun onCreate(savedInstanceState: Bundle?) {
68-
enableEdgeToEdge(statusBarStyle = SystemBarStyle.dark(android.graphics.Color.TRANSPARENT))
68+
enableEdgeToEdge(statusBarStyle = SystemBarStyle.dark(android.graphics.Color.TRANSPARENT), navigationBarStyle = SystemBarStyle.dark(android.graphics.Color.TRANSPARENT))
6969
super.onCreate(savedInstanceState)
7070

7171
if (!hasDatabase(this) || !dataManager.isDatabaseUpToDate()) {

0 commit comments

Comments
 (0)