Commit 3582a150 authored by Yacumima's avatar Yacumima

dev

parent 7799ceff
...@@ -286,14 +286,14 @@ public class BoostFlutterView extends FrameLayout { ...@@ -286,14 +286,14 @@ public class BoostFlutterView extends FrameLayout {
onDetach(); onDetach();
} }
//混合栈的返回和原来Flutter的返回逻辑不同
public void onBackPressed() { public void onBackPressed() {
Debuger.log("onBackPressed()"); // Debuger.log("onBackPressed()");
if (mFlutterEngine != null) { // if (mFlutterEngine != null) {
mFlutterEngine.getNavigationChannel().popRoute(); // mFlutterEngine.getNavigationChannel().popRoute();
} else { // } else {
Debuger.log("Invoked onBackPressed() before BoostFlutterView was attached to an Activity."); // Debuger.log("Invoked onBackPressed() before BoostFlutterView was attached to an Activity.");
} // }
} }
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
......
...@@ -33,6 +33,7 @@ import android.os.Bundle; ...@@ -33,6 +33,7 @@ import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.view.Gravity; import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.view.Window; import android.view.Window;
...@@ -186,7 +187,6 @@ public abstract class BoostFlutterActivity extends Activity implements IFlutterV ...@@ -186,7 +187,6 @@ public abstract class BoostFlutterActivity extends Activity implements IFlutterV
@Override @Override
public void onBackPressed() { public void onBackPressed() {
super.onBackPressed();
mSyncer.onBackPressed(); mSyncer.onBackPressed();
} }
......
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