![auto-submit[bot]](/assets/img/avatar_default.png)
Reverts: flutter/engine#55450 Initiated by: matanlurey Reason for reverting: Fixed forward in https://github.com/flutter/packages/pull/7712. Original PR Author: auto-submit[bot] Reviewed By: {fluttergithubbot} This change reverts the following previous change: Reverts: flutter/engine#55418 Initiated by: bdero Reason for reverting: [Engine->Framework roll breakage](https://github.com/flutter/flutter/issues/155727#issuecomment-2375489803) Original PR Author: matanlurey Reviewed By: {jonahwilliams} This change reverts the following previous change: Closes https://github.com/flutter/flutter/issues/155131. Not only did I rename the method, but I also changed the contract slightly - now `onSurfaceAvailable` is _only_ invoked _after_ `onSurfaceDestroyed` has been called. The cost is a single `boolean`, and it honestly makes the API make a lot more sense than someone having to track this themselves. /cc @johnmccutchan (OOO), and @flutter/android-reviewers.