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
43926214
Commit
43926214
authored
Mar 24, 2020
by
Firewayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix多tab情况下,Fragment切换时生命周期未正确同步至Boost的Bug
parent
a62aa224
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
android/src/main/java/com/idlefish/flutterboost/containers/FlutterFragment.java
...com/idlefish/flutterboost/containers/FlutterFragment.java
+21
-4
No files found.
android/src/main/java/com/idlefish/flutterboost/containers/FlutterFragment.java
View file @
43926214
...
@@ -259,14 +259,18 @@ public class FlutterFragment extends Fragment implements FlutterActivityAndFragm
...
@@ -259,14 +259,18 @@ public class FlutterFragment extends Fragment implements FlutterActivityAndFragm
@Override
@Override
public
void
onStart
()
{
public
void
onStart
()
{
super
.
onStart
();
super
.
onStart
();
if
(!
isHidden
())
{
delegate
.
onStart
();
delegate
.
onStart
();
}
}
}
@Override
@Override
public
void
onResume
()
{
public
void
onResume
()
{
super
.
onResume
();
super
.
onResume
();
if
(!
isHidden
())
{
delegate
.
onResume
();
delegate
.
onResume
();
}
}
}
// TODO(mattcarroll): determine why this can't be in onResume(). Comment reason, or move if possible.
// TODO(mattcarroll): determine why this can't be in onResume(). Comment reason, or move if possible.
@ActivityCallThrough
@ActivityCallThrough
...
@@ -277,14 +281,18 @@ public class FlutterFragment extends Fragment implements FlutterActivityAndFragm
...
@@ -277,14 +281,18 @@ public class FlutterFragment extends Fragment implements FlutterActivityAndFragm
@Override
@Override
public
void
onPause
()
{
public
void
onPause
()
{
super
.
onPause
();
super
.
onPause
();
if
(!
isHidden
())
{
delegate
.
onPause
();
delegate
.
onPause
();
}
}
}
@Override
@Override
public
void
onStop
()
{
public
void
onStop
()
{
super
.
onStop
();
super
.
onStop
();
if
(!
isHidden
())
{
delegate
.
onStop
();
delegate
.
onStop
();
}
}
}
@Override
@Override
public
void
onDestroyView
()
{
public
void
onDestroyView
()
{
...
@@ -300,6 +308,15 @@ public class FlutterFragment extends Fragment implements FlutterActivityAndFragm
...
@@ -300,6 +308,15 @@ public class FlutterFragment extends Fragment implements FlutterActivityAndFragm
delegate
=
null
;
delegate
=
null
;
}
}
@Override
public
void
onHiddenChanged
(
boolean
hidden
)
{
super
.
onHiddenChanged
(
hidden
);
if
(
hidden
)
{
delegate
.
onPause
();
}
else
{
delegate
.
onResume
();
}
}
@ActivityCallThrough
@ActivityCallThrough
public
void
onRequestPermissionsResult
(
int
requestCode
,
@NonNull
String
[]
permissions
,
@NonNull
int
[]
grantResults
)
{
public
void
onRequestPermissionsResult
(
int
requestCode
,
@NonNull
String
[]
permissions
,
@NonNull
int
[]
grantResults
)
{
...
...
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