Commit 3582a150 authored by Yacumima's avatar Yacumima

dev

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