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
db95bdbb
Commit
db95bdbb
authored
Mar 28, 2019
by
Yacumima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
just request apply insets
parent
fd39ca34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
android/src/main/java/com/taobao/idlefish/flutterboost/BoostFlutterView.java
...va/com/taobao/idlefish/flutterboost/BoostFlutterView.java
+15
-14
No files found.
android/src/main/java/com/taobao/idlefish/flutterboost/BoostFlutterView.java
View file @
db95bdbb
...
...
@@ -193,19 +193,20 @@ public class BoostFlutterView extends FlutterView {
protected
void
onAttachedToWindow
()
{
//Debuger.log("flutterView onAttachedToWindow");
super
.
onAttachedToWindow
();
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
M
)
{
final
WindowInsets
windowInsets
=
getRootWindowInsets
();
if
(
windowInsets
!=
null
)
{
if
(
mCurrentWindowInsets
==
null
||
!
TextUtils
.
equals
(
windowInsets
.
toString
(),
mCurrentWindowInsets
.
toString
()))
{
Debuger
.
log
(
"setWindowInsets "
+
windowInsets
.
toString
());
mCurrentWindowInsets
=
windowInsets
;
super
.
onApplyWindowInsets
(
mCurrentWindowInsets
);
}
}
}
else
{
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
// final WindowInsets windowInsets = getRootWindowInsets();
// if(windowInsets != null) {
// if(mCurrentWindowInsets == null ||
// !TextUtils.equals(windowInsets.toString(),mCurrentWindowInsets.toString())) {
// Debuger.log("setWindowInsets "+windowInsets.toString());
//
// mCurrentWindowInsets = windowInsets;
// super.onApplyWindowInsets(mCurrentWindowInsets);
// }
// }
// }else {
// ViewCompat.requestApplyInsets(this);
// }
ViewCompat
.
requestApplyInsets
(
this
);
}
}
}
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