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
e774181b
Commit
e774181b
authored
Mar 25, 2019
by
Yacumima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try update viewport metrics when changed
parent
dc9bd7ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
android/src/main/java/com/taobao/idlefish/flutterboost/BoostFlutterView.java
...va/com/taobao/idlefish/flutterboost/BoostFlutterView.java
+16
-6
No files found.
android/src/main/java/com/taobao/idlefish/flutterboost/BoostFlutterView.java
View file @
e774181b
...
@@ -25,19 +25,16 @@ package com.taobao.idlefish.flutterboost;
...
@@ -25,19 +25,16 @@ package com.taobao.idlefish.flutterboost;
import
android.content.Context
;
import
android.content.Context
;
import
android.graphics.Bitmap
;
import
android.graphics.Bitmap
;
import
android.os.Build
;
import
android.text.TextUtils
;
import
android.util.AttributeSet
;
import
android.util.AttributeSet
;
import
android.view.KeyEvent
;
import
android.view.SurfaceHolder
;
import
android.view.SurfaceHolder
;
import
android.view.
View
;
import
android.view.
WindowInsets
;
import
com.taobao.idlefish.flutterboost.NavigationService.NavigationService
;
import
com.taobao.idlefish.flutterboost.NavigationService.NavigationService
;
import
java.lang.ref.SoftReference
;
import
java.lang.ref.WeakReference
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.LinkedList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
io.flutter.view.FlutterNativeView
;
import
io.flutter.view.FlutterNativeView
;
...
@@ -47,6 +44,7 @@ public class BoostFlutterView extends FlutterView {
...
@@ -47,6 +44,7 @@ public class BoostFlutterView extends FlutterView {
private
boolean
mFirstFrameCalled
=
false
;
private
boolean
mFirstFrameCalled
=
false
;
private
boolean
mResumed
=
false
;
private
boolean
mResumed
=
false
;
private
WindowInsets
mCurrentWindowInsets
;
private
BoostCallback
mBoostCallback
;
private
BoostCallback
mBoostCallback
;
...
@@ -194,5 +192,17 @@ public class BoostFlutterView extends FlutterView {
...
@@ -194,5 +192,17 @@ public class BoostFlutterView extends FlutterView {
protected
void
onAttachedToWindow
()
{
protected
void
onAttachedToWindow
()
{
//Debuger.log("flutterView onAttachedToWindow");
//Debuger.log("flutterView onAttachedToWindow");
super
.
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
);
}
}
}
}
}
}
}
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