Skip to content

BottomSheetDialog uses deprecated setStatusBarColor() and setDecorFitsSystemWindows() on Android 15 #4732

@farhajkhan88

Description

@farhajkhan88

Hi team,

While uploading my app to the Play Console, I received a warning regarding the use of deprecated APIs related to edge-to-edge support on Android 15 (API 35).

The warning points to the use of the following deprecated APIs:

  • android.view.Window.setStatusBarColor
  • androidx.core.view.WindowCompat.setDecorFitsSystemWindows
  • android.view.Window.setNavigationBarColor

According to the Play Console, these deprecated APIs are being used internally in:

  • com.google.android.material.bottomsheet.BottomSheetDialog.onCreate
  • com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge
  • com.google.android.material.sidesheet.SheetDialog.onCreate

I'm using com.google.android.material:material:1.12.0, which I believe is the latest stable version.

These warnings are not from my code, they’re from the Material library. While they don’t block publishing currently, they may become problematic in future Android versions or Play policy updates.

Could the team please update these classes to use the new edge-to-edge APIs recommended for Android 15?

Thank you!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions