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
1301ef67
Commit
1301ef67
authored
Oct 28, 2020
by
justin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加注释和修改方法名
parent
ddd9ff84
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
android/src/main/java/com/idlefish/flutterboost/ContainerRecord.java
.../main/java/com/idlefish/flutterboost/ContainerRecord.java
+20
-1
android/src/main/java/com/idlefish/flutterboost/containers/FlutterActivityAndFragmentDelegate.java
...rboost/containers/FlutterActivityAndFragmentDelegate.java
+2
-2
android/src/main/java/com/idlefish/flutterboost/interfaces/IOperateSyncer.java
.../com/idlefish/flutterboost/interfaces/IOperateSyncer.java
+1
-1
No files found.
android/src/main/java/com/idlefish/flutterboost/ContainerRecord.java
View file @
1301ef67
...
...
@@ -66,8 +66,27 @@ public class ContainerRecord implements IContainerRecord {
return
mState
;
}
/**
*
* 解决Top页面在绑定engine 后,被底下页面detach engine ,导致白屏问题卡死问题
*
* 具体案例路径和原因:
* android 10系统
* 1、闲鱼应用当前是Flutter页面(Flutter-A),切到后台;
* 2、切后台后,某些原因,导致accs断开;
* 3、收到push,因为accs断开,走厂商通道;
* 4、进去XiaoMiSystemMessageActivity(Native-B),这个activity主题是透明的,埋下一个问题;
* 5、XiaoMiSystemMessageActivity 内处理push,跳转到消息页(Flutter-C),同时关闭自己;
*
* 5 步骤 堆栈从 [Native-B,Flutter-A] 变成了 [Flutter-C,Flutter-A] ,由于Native-B的主题是透明的,导致Flutter-C,Flutter-A的生命周期回调不合预期,
* 出现了Flutter-C没有挂载Engine,而Flutter-A挂载Engine的情况。
*
* 最终现象是 Flutter-C 假死
*
* @return
*/
@Override
public
boolean
isLock
(){
public
boolean
isLock
ed
(){
IContainerRecord
record
=
mManager
.
getCurrentTopRecord
();
if
(
record
==
this
||
record
==
null
)
return
false
;
return
true
;
...
...
android/src/main/java/com/idlefish/flutterboost/containers/FlutterActivityAndFragmentDelegate.java
View file @
1301ef67
...
...
@@ -165,7 +165,7 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContainer
public
void
onResume
()
{
if
(
mSyncer
.
isLock
())
return
;
if
(
mSyncer
.
isLock
ed
())
return
;
mSyncer
.
onAppear
();
...
...
@@ -199,7 +199,7 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContainer
public
void
onPause
()
{
Log
.
v
(
TAG
,
"onPause()"
);
if
(
mSyncer
.
isLock
())
return
;
if
(
mSyncer
.
isLock
ed
())
return
;
ensureAlive
();
mSyncer
.
onDisappear
();
flutterEngine
.
getLifecycleChannel
().
appIsInactive
();
...
...
android/src/main/java/com/idlefish/flutterboost/interfaces/IOperateSyncer.java
View file @
1301ef67
...
...
@@ -5,7 +5,7 @@ import android.content.Intent;
import
java.util.Map
;
public
interface
IOperateSyncer
{
boolean
isLock
();
boolean
isLock
ed
();
void
onCreate
();
...
...
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