-
Notifications
You must be signed in to change notification settings - Fork 6k
Android Embedding PR 11: Add FlutterEngine to FlutterFragment. #7972
Android Embedding PR 11: Add FlutterEngine to FlutterFragment. #7972
Conversation
* By default, this method returns a standard {@link FlutterEngine} without any modification. | ||
*/ | ||
@NonNull | ||
protected FlutterEngine onCreateFlutterEngine(@NonNull Context context) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The naming of this seems awkward to me. I think this should just be called createFlutterEngine
. Having a non-void
method called onCreate
seems unusual.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really a nit though, feel free to disregard if it fits some other pattern that I'm just not aware of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The convention I was trying to follow here is similar to the onCreateView()
method in Fragments. There's a primary method invoked in the superclass, in this case called createFlutterEngine()
, which then internally invokes a subclass hook, in this case called onCreateFlutterEngine()
. Does that make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit
flutter/engine@9b92476...5194919 git log 9b92476..5194919 --no-merges --oneline 5194919 Roll src/third_party/skia 1179d5dfaf8d..b7b2da871e95 (1 commits) (flutter/engine#7996) 58ce0ff Roll src/third_party/skia 90043480b587..1179d5dfaf8d (3 commits) (flutter/engine#7995) 72cbe69 Fix two typos in embedder.h (flutter/engine#7993) 2360b45 Android Embedding PR 11: Add FlutterEngine to FlutterFragment. (flutter/engine#7972) df03ec7 Roll src/third_party/skia 0cedddc1420b..90043480b587 (1 commits) (flutter/engine#7994) 4a148cd Roll src/third_party/skia 67d87128fd00..0cedddc1420b (10 commits) (flutter/engine#7992) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.
No description provided.