Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
c9466077
Commit
c9466077
authored
Jan 15, 2020
by
NewAuthor
Committed by
jack g
Jan 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新的注册方式在onAttach时执行attachToView
parent
ca265ff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
android/src/main/java/com/idlefish/flutterboost/XFlutterView.java
...src/main/java/com/idlefish/flutterboost/XFlutterView.java
+2
-1
android/src/main/java/com/idlefish/flutterboost/containers/FlutterSplashView.java
...m/idlefish/flutterboost/containers/FlutterSplashView.java
+2
-2
No files found.
android/src/main/java/com/idlefish/flutterboost/XFlutterView.java
View file @
c9466077
...
...
@@ -606,6 +606,7 @@ public class XFlutterView extends FrameLayout {
isFlutterUiDisplayed
=
flutterRenderer
.
isDisplayingFlutterUi
();
renderSurface
.
attachToRenderer
(
flutterRenderer
);
flutterRenderer
.
addIsDisplayingFlutterUiListener
(
flutterUiDisplayListener
);
this
.
flutterEngine
.
getPlatformViewsController
().
attachToView
(
this
);
...
...
@@ -691,7 +692,7 @@ public class XFlutterView extends FrameLayout {
// Disconnect the FlutterEngine's PlatformViewsController from the AccessibilityBridge.
flutterEngine
.
getPlatformViewsController
().
detachAccessibiltyBridge
();
flutterEngine
.
getPlatformViewsController
().
detachFromView
();
// Disconnect and clean up the AccessibilityBridge.
accessibilityBridge
.
release
();
accessibilityBridge
=
null
;
...
...
android/src/main/java/com/idlefish/flutterboost/containers/FlutterSplashView.java
View file @
c9466077
...
...
@@ -182,7 +182,7 @@ public class FlutterSplashView extends FrameLayout {
public
void
onAttach
()
{
Debuger
.
log
(
"BoostFlutterView onAttach"
);
mFlutterEngine
.
getPlatformViewsController
().
attachToView
(
flutterView
);
flutterView
.
attachToFlutterEngine
(
mFlutterEngine
);
}
...
...
@@ -190,7 +190,7 @@ public class FlutterSplashView extends FrameLayout {
public
void
onDetach
()
{
Debuger
.
log
(
"BoostFlutterView onDetach"
);
mFlutterEngine
.
getPlatformViewsController
().
detachFromView
();
flutterView
.
detachFromFlutterEngine
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment