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
0
Merge Requests
0
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
3582a150
Commit
3582a150
authored
Jul 16, 2019
by
Yacumima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
7799ceff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
...main/java/com/idlefish/flutterboost/BoostFlutterView.java
+7
-7
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterActivity.java
...dlefish/flutterboost/containers/BoostFlutterActivity.java
+1
-1
No files found.
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
View file @
3582a150
...
@@ -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
)
{
...
...
android/src/main/java/com/idlefish/flutterboost/containers/BoostFlutterActivity.java
View file @
3582a150
...
@@ -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
();
}
}
...
...
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