Skip to content

[Other] Broken Activity transitions after upgrading to 1.10.0 #3644

Closed
@danijel-vrecic

Description

@danijel-vrecic

Description:
Activity transitions are broken after upgrading google-material from 1.9.0 to 1.10.0
Restarting the app does not help to fix the issue. Restarting the phone or downgrading to 1.9 fix the problem.

Expected behavior:
After update, the transitions should remain intact.

Source code:
Theme Theme.MaterialComponents.DayNight.NoActionBar.Bridge

  override fun startActivity(intent: Intent?) {
      super.startActivity(intent)
      overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
  }

  override fun finish() {
      super.finish()
      overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_right);
  }

Minimal sample app repro:
Branch master has com.google.android.material:material:1.9.0
Branch maintenance/upgrade-google-material-to-1-10-0 has com.google.android.material:material:1.10.0
https://github.com/danijel-vrecic/override-pending-transition-issue

Android API version:
API 28, API 34

Material Library version: com.google.android.material:material:1.10.0

Device:

  • Huawei P10 (API 28)
  • Pixel 6 (API 34)
  • Emulators (API28, API34)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions