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
635ce87a
Commit
635ce87a
authored
Dec 11, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉销毁接口,目前该功能还有bug
parent
54670d3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
android/src/main/java/com/idlefish/flutterboost/FlutterBoost.java
...src/main/java/com/idlefish/flutterboost/FlutterBoost.java
+1
-9
android/src/main/java/com/idlefish/flutterboost/FlutterViewContainerManager.java
...om/idlefish/flutterboost/FlutterViewContainerManager.java
+3
-5
android/src/main/java/com/idlefish/flutterboost/Platform.java
...oid/src/main/java/com/idlefish/flutterboost/Platform.java
+0
-1
No files found.
android/src/main/java/com/idlefish/flutterboost/FlutterBoost.java
View file @
635ce87a
...
...
@@ -163,7 +163,6 @@ public class FlutterBoost {
}
public
void
boostPluginRegistry
(){
mPlatform
.
getApplication
().
unregisterActivityLifecycleCallbacks
(
mActivityLifecycleCallbacks
);
if
(
mRegistry
!=
null
&&
!
mRegistry
.
hasPlugin
(
"boostPluginRegistry"
)){
mPlatform
.
registerPlugins
(
mRegistry
);
mRegistry
.
registrarFor
(
"boostPluginRegistry"
);
...
...
@@ -235,10 +234,7 @@ public class FlutterBoost {
return
this
;
}
public
ConfigBuilder
whenEngineDestory
(
int
whenEngineDestory
)
{
this
.
whenEngineDestory
=
whenEngineDestory
;
return
this
;
}
public
ConfigBuilder
lifecycleListener
(
BoostLifecycleListener
lifecycleListener
)
{
this
.
lifecycleListener
=
lifecycleListener
;
...
...
@@ -275,10 +271,6 @@ public class FlutterBoost {
return
ConfigBuilder
.
this
.
whenEngineStart
;
}
@Override
public
int
whenEngineDestroy
()
{
return
ConfigBuilder
.
this
.
whenEngineDestory
;
}
public
FlutterView
.
RenderMode
renderMode
()
{
return
ConfigBuilder
.
this
.
renderMode
;
...
...
android/src/main/java/com/idlefish/flutterboost/FlutterViewContainerManager.java
View file @
635ce87a
...
...
@@ -82,11 +82,9 @@ public class FlutterViewContainerManager implements IContainerManager {
void
removeRecord
(
IContainerRecord
record
)
{
mRecordStack
.
remove
(
record
);
mRecordMap
.
remove
(
record
.
getContainer
());
if
(
mRecordMap
.
isEmpty
()){
if
(
FlutterBoost
.
instance
().
platform
().
whenEngineDestroy
()==
FlutterBoost
.
ConfigBuilder
.
All_FLUTTER_ACTIVITY_DESTROY
){
FlutterBoost
.
instance
().
boostDestroy
();
}
}
// if(mRecordMap.isEmpty()){
//
// }
}
...
...
android/src/main/java/com/idlefish/flutterboost/Platform.java
View file @
635ce87a
...
...
@@ -19,7 +19,6 @@ public abstract class Platform {
public
abstract
int
whenEngineStart
();
public
abstract
int
whenEngineDestroy
();
public
abstract
FlutterView
.
RenderMode
renderMode
();
...
...
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