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
c6cbdeb0
Commit
c6cbdeb0
authored
Aug 25, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
native和flutter生命周期同步
parent
c159c0f3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
...main/java/com/idlefish/flutterboost/BoostFlutterView.java
+3
-3
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterActivity.java
...dlefish/flutterboost/containers/BoostFlutterActivity.java
+4
-0
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterFragment.java
...dlefish/flutterboost/containers/BoostFlutterFragment.java
+4
-0
No files found.
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
View file @
c6cbdeb0
...
@@ -230,7 +230,7 @@ public class BoostFlutterView extends FrameLayout {
...
@@ -230,7 +230,7 @@ public class BoostFlutterView extends FrameLayout {
public
void
onResume
()
{
public
void
onResume
()
{
Debuger
.
log
(
"BoostFlutterView onResume"
);
Debuger
.
log
(
"BoostFlutterView onResume"
);
mFlutterEngine
.
getLifecycleChannel
().
appIsResumed
();
//
mFlutterEngine.getLifecycleChannel().appIsResumed();
}
}
// public void onPostResume() {
// public void onPostResume() {
...
@@ -240,12 +240,12 @@ public class BoostFlutterView extends FrameLayout {
...
@@ -240,12 +240,12 @@ public class BoostFlutterView extends FrameLayout {
public
void
onPause
()
{
public
void
onPause
()
{
Debuger
.
log
(
"BoostFlutterView onPause"
);
Debuger
.
log
(
"BoostFlutterView onPause"
);
mFlutterEngine
.
getLifecycleChannel
().
appIsInactive
();
//
mFlutterEngine.getLifecycleChannel().appIsInactive();
}
}
public
void
onStop
()
{
public
void
onStop
()
{
Debuger
.
log
(
"BoostFlutterView onStop"
);
Debuger
.
log
(
"BoostFlutterView onStop"
);
mFlutterEngine
.
getLifecycleChannel
().
appIsPaused
();
//
mFlutterEngine.getLifecycleChannel().appIsPaused();
}
}
public
void
onAttach
()
{
public
void
onAttach
()
{
...
...
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterActivity.java
View file @
c6cbdeb0
...
@@ -171,12 +171,16 @@ public abstract class BoostFlutterActivity extends Activity implements IFlutterV
...
@@ -171,12 +171,16 @@ public abstract class BoostFlutterActivity extends Activity implements IFlutterV
protected
void
onResume
()
{
protected
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
mSyncer
.
onAppear
();
mSyncer
.
onAppear
();
mFlutterEngine
.
getLifecycleChannel
().
appIsResumed
();
}
}
@Override
@Override
protected
void
onPause
()
{
protected
void
onPause
()
{
mSyncer
.
onDisappear
();
mSyncer
.
onDisappear
();
super
.
onPause
();
super
.
onPause
();
mFlutterEngine
.
getLifecycleChannel
().
appIsInactive
();
}
}
@Override
@Override
...
...
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterFragment.java
View file @
c6cbdeb0
...
@@ -83,12 +83,16 @@ abstract public class BoostFlutterFragment extends Fragment implements IFlutterV
...
@@ -83,12 +83,16 @@ abstract public class BoostFlutterFragment extends Fragment implements IFlutterV
public
void
onResume
()
{
public
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
mSyncer
.
onAppear
();
mSyncer
.
onAppear
();
mFlutterEngine
.
getLifecycleChannel
().
appIsResumed
();
}
}
@Override
@Override
public
void
onPause
()
{
public
void
onPause
()
{
mSyncer
.
onDisappear
();
mSyncer
.
onDisappear
();
super
.
onPause
();
super
.
onPause
();
mFlutterEngine
.
getLifecycleChannel
().
appIsInactive
();
}
}
@Override
@Override
...
...
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