Ensure that the engine is destroyed when 'EngineBindings.detach' in the multiple_flutters example on Android (#969)

pull/1010/head
ColdPaleLight 4 years ago committed by GitHub
parent 5b0a6be873
commit 296fbac814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,8 +74,7 @@ class EngineBindings(activity: Activity, delegate: EngineBindingsDelegate, entry
* This tears down the messaging connections on the platform channel and the DataModel.
*/
fun detach() {
// TODO: Uncomment after https://github.com/flutter/engine/pull/24644 is on stable.
// engine.destroy();
engine.destroy();
DataModel.instance.removeObserver(this)
channel.setMethodCallHandler(null)
}

Loading…
Cancel
Save