Commit b938473e authored by 余玠's avatar 余玠

Merge branch 'flutter_1.5_upgrade_opt' of...

Merge branch 'flutter_1.5_upgrade_opt' of https://github.com/alibaba/flutter_boost into flutter_1.5_upgrade_opt
parents 6050e4c1 c6cbdeb0
......@@ -230,7 +230,7 @@ public class BoostFlutterView extends FrameLayout {
public void onResume() {
Debuger.log("BoostFlutterView onResume");
mFlutterEngine.getLifecycleChannel().appIsResumed();
// mFlutterEngine.getLifecycleChannel().appIsResumed();
}
// public void onPostResume() {
......@@ -240,12 +240,12 @@ public class BoostFlutterView extends FrameLayout {
public void onPause() {
Debuger.log("BoostFlutterView onPause");
mFlutterEngine.getLifecycleChannel().appIsInactive();
// mFlutterEngine.getLifecycleChannel().appIsInactive();
}
public void onStop() {
Debuger.log("BoostFlutterView onStop");
mFlutterEngine.getLifecycleChannel().appIsPaused();
// mFlutterEngine.getLifecycleChannel().appIsPaused();
}
public void onAttach() {
......
......@@ -171,12 +171,16 @@ public abstract class BoostFlutterActivity extends Activity implements IFlutterV
protected void onResume() {
super.onResume();
mSyncer.onAppear();
mFlutterEngine.getLifecycleChannel().appIsResumed();
}
@Override
protected void onPause() {
mSyncer.onDisappear();
super.onPause();
mFlutterEngine.getLifecycleChannel().appIsInactive();
}
@Override
......
......@@ -83,12 +83,16 @@ abstract public class BoostFlutterFragment extends Fragment implements IFlutterV
public void onResume() {
super.onResume();
mSyncer.onAppear();
mFlutterEngine.getLifecycleChannel().appIsResumed();
}
@Override
public void onPause() {
mSyncer.onDisappear();
super.onPause();
mFlutterEngine.getLifecycleChannel().appIsInactive();
}
@Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment